// 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');
// 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();
+}