Can disabled javascript on command line
This commit is contained in:
parent
d42b94076f
commit
8a1fdd2eb8
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user