Commit 6f9b2def authored by Nigel McNie's avatar Nigel McNie

Move scriptfilename closer to where it's used. Silences cron bitching.

(cherry picked from commit 7d017d1d)
parent 081a2346
......@@ -251,10 +251,10 @@ if (get_config('siteclosed')) {
}
// check to see if we're installed...
$scriptfilename = str_replace('\\', '/', $_SERVER['SCRIPT_FILENAME']);
if (!get_config('installed')) {
ensure_install_sanity();
$scriptfilename = str_replace('\\', '/', $_SERVER['SCRIPT_FILENAME']);
if (false === strpos($scriptfilename, 'admin/index.php')
&& false === strpos($scriptfilename, 'admin/upgrade.php')
&& false === strpos($scriptfilename, 'admin/upgrade.json.php')) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment