From 6944d67dbc2399abd7b65da07952b16c8178d3a5 Mon Sep 17 00:00:00 2001 From: rabuzarus <> Date: Fri, 13 May 2016 01:26:07 +0200 Subject: [PATCH] photos view: fix js error with undefined variable --- mod/photos.php | 4 ++++ view/templates/photo_view.tpl | 2 +- view/theme/frost-mobile/templates/photo_view.tpl | 2 +- view/theme/frost/templates/photo_view.tpl | 2 +- view/theme/quattro/templates/photo_view.tpl | 2 +- view/theme/vier/templates/photo_view.tpl | 2 +- 6 files changed, 9 insertions(+), 5 deletions(-) diff --git a/mod/photos.php b/mod/photos.php index 4761b627d..7d4e2de59 100644 --- a/mod/photos.php +++ b/mod/photos.php @@ -1079,6 +1079,10 @@ function photos_content(&$a) { $o = ""; + // js variables for liveUpdate function in main.js + $o .= "<script> var profile_uid = " . $a->profile_uid + . "; var netargs = '?f='; var profile_page = " . $a->pager['page'] . "; </script>\r\n"; + // tabs $is_owner = (local_user() && (local_user() == $owner_uid)); $o .= profile_tabs($a,$is_owner, $a->data['user']['nickname']); diff --git a/view/templates/photo_view.tpl b/view/templates/photo_view.tpl index 847b623eb..b85a1c2f5 100644 --- a/view/templates/photo_view.tpl +++ b/view/templates/photo_view.tpl @@ -1,5 +1,5 @@ -<div id="live-display"></div> +<div id="live-photos"></div> <h3><a href="{{$album.0}}">{{$album.1}}</a></h3> <div id="photo-edit-link-wrap"> diff --git a/view/theme/frost-mobile/templates/photo_view.tpl b/view/theme/frost-mobile/templates/photo_view.tpl index 8d92b7ba7..a5fb2f041 100644 --- a/view/theme/frost-mobile/templates/photo_view.tpl +++ b/view/theme/frost-mobile/templates/photo_view.tpl @@ -1,5 +1,5 @@ -<div id="live-display"></div> +<div id="live-photos"></div> <h3><a href="{{$album.0}}">{{$album.1}}</a></h3> <div id="photo-edit-link-wrap"> diff --git a/view/theme/frost/templates/photo_view.tpl b/view/theme/frost/templates/photo_view.tpl index 8d92b7ba7..a5fb2f041 100644 --- a/view/theme/frost/templates/photo_view.tpl +++ b/view/theme/frost/templates/photo_view.tpl @@ -1,5 +1,5 @@ -<div id="live-display"></div> +<div id="live-photos"></div> <h3><a href="{{$album.0}}">{{$album.1}}</a></h3> <div id="photo-edit-link-wrap"> diff --git a/view/theme/quattro/templates/photo_view.tpl b/view/theme/quattro/templates/photo_view.tpl index 463969e78..f4a780a0a 100644 --- a/view/theme/quattro/templates/photo_view.tpl +++ b/view/theme/quattro/templates/photo_view.tpl @@ -1,4 +1,4 @@ -<div id="live-display"></div> +<div id="live-photos"></div> <h3 id="photo-album-title"><a href="{{$album.0}}">{{$album.1}}</a></h3> <div id="photo-edit-link-wrap"> diff --git a/view/theme/vier/templates/photo_view.tpl b/view/theme/vier/templates/photo_view.tpl index fcf0cc36d..c252960c0 100644 --- a/view/theme/vier/templates/photo_view.tpl +++ b/view/theme/vier/templates/photo_view.tpl @@ -1,5 +1,5 @@ -<div id="live-display"></div> +<div id="live-photos"></div> <h3><a href="{{$album.0}}">{{$album.1}}</a></h3> <div id="photo-edit-link-wrap">