better check for setup module

This commit is contained in:
friendica 2014-02-02 14:09:09 -08:00
parent cf85fec919
commit 02e4527de6

View File

@ -244,7 +244,7 @@ if(! x($a->page,'content'))
if(! $install) {
if(! ($a->module === 'setup')) {
/* 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>';