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 .= "\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 @@
-
+
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 @@
-
+
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 @@
-
+
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 @@
-
+
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 @@
-
+