]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-18072 installer - define CLI_SCRIPT (false) to avoid notices here and there.
authorstronk7 <stronk7>
Wed, 28 Jan 2009 22:54:39 +0000 (22:54 +0000)
committerstronk7 <stronk7>
Wed, 28 Jan 2009 22:54:39 +0000 (22:54 +0000)
install.php

index 90bfb6e95adbde266d15e245aaac8b923a9b9a84..09d707b27fea30d1d0fba6e5cb54b25f107af4de 100644 (file)
@@ -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.