]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-20204 Eclipse autocompletion works again
authorPetr Skoda <skodak@moodle.org>
Fri, 1 Jan 2010 12:44:08 +0000 (12:44 +0000)
committerPetr Skoda <skodak@moodle.org>
Fri, 1 Jan 2010 12:44:08 +0000 (12:44 +0000)
lib/setup.php

index 6239a189239da82c59cbfc53e0d12a51107fdcbf..254497cd53ae2d8cb7c80c66c2678afd96527dd7 100644 (file)
@@ -219,6 +219,11 @@ 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');