]> git.mjollnir.org Git - moodle.git/commitdiff
more eclipse autocompletion fixes
authorPetr Skoda <skodak@moodle.org>
Wed, 13 Jan 2010 11:25:15 +0000 (11:25 +0000)
committerPetr Skoda <skodak@moodle.org>
Wed, 13 Jan 2010 11:25:15 +0000 (11:25 +0000)
lib/setup.php

index a7fc4e717e50cf731a502ade59a53e81a4698db4..1d4fdab73870e7c895b67c9db8e00097a9bb709c 100644 (file)
@@ -231,11 +231,6 @@ init_performance_info();
 
 // Put $OUTPUT in place, so errors can be displayed.
 $OUTPUT = new bootstrap_renderer();
-if (false) {
-    // this is a funny trick to make Eclipse believe that $OUTPUT contains
-    // aninstance of core_renderer which in turn fixes autocompletion ;-)
-    $OUTPUT = new core_renderer(null, null);
-}
 
 // set handler for uncaught exceptions - equivalent to print_error() call
 set_exception_handler('default_exception_handler');
@@ -712,3 +707,13 @@ if (!empty($CFG->allowbeforeblock)) { // allowed list processed before blocked l
 
 // note: we can not block non utf-8 installations here, because empty mysql database
 // might be converted to utf-8 in admin/index.php during installation
+
+
+
+// this is a funny trick to make Eclipse believe that $OUTPUT and other globals
+// contains an instance of core_renderer, etc. which in turn fixes autocompletion ;-)
+if (false) {
+    $DB = new moodle_database();
+    $OUTPUT = new core_renderer(null, null);
+    $PAGE = new moodle_page();
+}