Can disabled javascript on command line

This commit is contained in:
Laurent Destailleur 2010-08-27 21:02:31 +00:00
parent d42b94076f
commit 8a1fdd2eb8

View File

@ -607,10 +607,14 @@ if (! defined('NOLOGIN'))
$conf->css = "/theme/".$conf->theme."/style.css.php"; $conf->css = "/theme/".$conf->theme."/style.css.php";
} }
// Set javascript option // Set javascript option
if (! empty($user->conf->MAIN_DISABLE_JAVASCRIPT)) if (empty($_GET["nojs"])) // If javascript was not disabled on URL
{ {
$conf->use_javascript_ajax=! $user->conf->MAIN_DISABLE_JAVASCRIPT; if (! empty($user->conf->MAIN_DISABLE_JAVASCRIPT))
} {
$conf->use_javascript_ajax=! $user->conf->MAIN_DISABLE_JAVASCRIPT;
}
}
else $conf->use_javascript_ajax=0;
} }