Browse Source

photos view: fix js error with undefined variable

pull/2511/head
rabuzarus 6 years ago
parent
commit
6944d67dbc
  1. 4
      mod/photos.php
  2. 2
      view/templates/photo_view.tpl
  3. 2
      view/theme/frost-mobile/templates/photo_view.tpl
  4. 2
      view/theme/frost/templates/photo_view.tpl
  5. 2
      view/theme/quattro/templates/photo_view.tpl
  6. 2
      view/theme/vier/templates/photo_view.tpl

4
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']);

2
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">

2
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">

2
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">

2
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">

2
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">

Loading…
Cancel
Save