aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-11-10 18:57:24 -0800
committerfriendica <info@friendica.com>2013-11-10 18:57:24 -0800
commiteffb1a0534aae40a1b2a0e396de09d1b0d06bb44 (patch)
treeae66067e58587c06e78be847bbe467f90dc51da9
parent0d28608db7a3f8e0b0a4efa62d9a4aff9db7d760 (diff)
downloadvolse-hubzilla-effb1a0534aae40a1b2a0e396de09d1b0d06bb44.tar.gz
volse-hubzilla-effb1a0534aae40a1b2a0e396de09d1b0d06bb44.tar.bz2
volse-hubzilla-effb1a0534aae40a1b2a0e396de09d1b0d06bb44.zip
provide zid in js so we can use it from client
-rwxr-xr-xboot.php3
-rwxr-xr-xview/tpl/head.tpl1
2 files changed, 3 insertions, 1 deletions
diff --git a/boot.php b/boot.php
index 96b73eaaa..c3a10f300 100755
--- a/boot.php
+++ b/boot.php
@@ -990,7 +990,8 @@ class App {
'$icon' => head_get_icon(),
'$head_css' => head_get_css(),
'$head_js' => head_get_js(),
- '$js_strings' => js_strings()
+ '$js_strings' => js_strings(),
+ '$zid' => get_my_address(),
)) . $this->page['htmlhead'];
}
diff --git a/view/tpl/head.tpl b/view/tpl/head.tpl
index 4211eeab3..eb4c6c2ad 100755
--- a/view/tpl/head.tpl
+++ b/view/tpl/head.tpl
@@ -23,6 +23,7 @@
var updateInterval = {{$update_interval}};
var localUser = {{if $local_user}}{{$local_user}}{{else}}false{{/if}};
+ var zid = {{if $zid}}'{{$zid}}'{{else}}null{{/if}};
</script>