* Move autoloader up in Maintenance as well
* Add setInstance() method to Profiler, dumpHTML will need it
return self::$__instance;
}
+ /**
+ * Set the profiler to a specific profiler instance. Mostly for dumpHTML
+ * @param $p Profiler object
+ */
+ public static function setInstance( Profiler $p ) {
+ self::$__instance = $p;
+ }
+
/**
* Called by wfProfieIn()
*
# Get the MWInit class
if ( !defined( 'MW_COMPILED' ) ) {
require_once( "$IP/includes/Init.php" );
+ require_once( "$IP/includes/AutoLoader.php" );
}
# Stub the profiler
// Some other requires
if ( !defined( 'MW_COMPILED' ) ) {
- require_once( "$IP/includes/AutoLoader.php" );
require_once( "$IP/includes/Defines.php" );
}
require_once( "$IP/includes/DefaultSettings.php" );