more eclipse autocompletion fixes
This commit is contained in:
+10
-5
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user