aboutsummaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-02-02 14:06:36 -0800
committerfriendica <info@friendica.com>2014-02-02 14:06:36 -0800
commitb39c0d54c07c1a89aa1e4ecaef134b96e4ed4b8a (patch)
tree82066f5407951174261e61668341f0a6a674341b /index.php
parente83419b53e27078867f8449f476d87b064b9d502 (diff)
downloadvolse-hubzilla-b39c0d54c07c1a89aa1e4ecaef134b96e4ed4b8a.tar.gz
volse-hubzilla-b39c0d54c07c1a89aa1e4ecaef134b96e4ed4b8a.tar.bz2
volse-hubzilla-b39c0d54c07c1a89aa1e4ecaef134b96e4ed4b8a.zip
some windows fixes
Diffstat (limited to 'index.php')
-rwxr-xr-xindex.php20
1 files changed, 12 insertions, 8 deletions
diff --git a/index.php b/index.php
index c2421bc0e..a9264fee7 100755
--- a/index.php
+++ b/index.php
@@ -242,18 +242,22 @@ if (file_exists($theme_info_file)){
if(! x($a->page,'content'))
$a->page['content'] = '';
-/* set JS cookie */
-if($_COOKIE['jsAvailable'] != 1) {
- $a->page['content'] .= '<script>document.cookie="jsAvailable=1; path=/"; var jsMatch = /\&JS=1/; if (!jsMatch.exec(location.href)) { location.href = location.href + "&JS=1"; }</script>';
- /* emulate JS cookie if cookies are not accepted */
- if ($_GET['JS'] == 1) {
- $_COOKIE['jsAvailable'] = 1;
+
+
+if(! $install) {
+ /* set JS cookie */
+ if($_COOKIE['jsAvailable'] != 1) {
+ $a->page['content'] .= '<script>document.cookie="jsAvailable=1; path=/"; var jsMatch = /\&JS=1/; if (!jsMatch.exec(location.href)) { location.href = location.href + "&JS=1"; }</script>';
+ /* emulate JS cookie if cookies are not accepted */
+ if ($_GET['JS'] == 1) {
+ $_COOKIE['jsAvailable'] = 1;
+ }
}
+ call_hooks('page_content_top',$a->page['content']);
}
-if(! $install)
- call_hooks('page_content_top',$a->page['content']);
+
/**
* Call module functions