From: stronk7 Date: Wed, 28 Jan 2009 22:54:39 +0000 (+0000) Subject: MDL-18072 installer - define CLI_SCRIPT (false) to avoid notices here and there. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=7251d63d3d09d27c06c6f2669471d903521fa072;p=moodle.git MDL-18072 installer - define CLI_SCRIPT (false) to avoid notices here and there. --- diff --git a/install.php b/install.php index 90bfb6e95a..09d707b27f 100644 --- a/install.php +++ b/install.php @@ -27,6 +27,9 @@ define ('REDIRECT', 8); /// 8. Redirect to index.php /// This has to be defined to avoid a notice in current_language() define('SITEID', 0); +/// Defined to avoid some notices in weblib and so on. This is a web installer, so set it to false +define('CLI_SCRIPT', false); + /// Begin the session as we are holding all information in a session /// variable until the end.