From 39edbd022f7a2bb45cee2f038e8fb9a4941c410a Mon Sep 17 00:00:00 2001 From: Petr Skoda Date: Fri, 1 Jan 2010 12:44:08 +0000 Subject: [PATCH] MDL-20204 Eclipse autocompletion works again --- lib/setup.php | 5 +++++ 1 file changed, 5 insertions(+) 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'); -- 2.39.5