From: Petr Skoda Date: Fri, 1 Jan 2010 12:44:08 +0000 (+0000) Subject: MDL-20204 Eclipse autocompletion works again X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=39edbd022f7a2bb45cee2f038e8fb9a4941c410a;p=moodle.git MDL-20204 Eclipse autocompletion works again --- diff --git a/lib/setup.php b/lib/setup.php index 6239a18923..254497cd53 100644 --- a/lib/setup.php +++ b/lib/setup.php @@ -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');