* @return array
*/
private static function getCoreScripts() {
- return array();
- /**
if( !self::$mCoreScripts ) {
self::disableSetup();
$paths = array(
foreach( $paths as $p ) {
$handle = opendir( $p );
while( ( $file = readdir( $handle ) ) !== false ) {
+ if( $file == 'Maintenance.php' )
+ continue;
$file = $p . '/' . $file;
- if( is_dir( $file ) || !strpos( $file, '.php' ) ) {
+ if( is_dir( $file ) || !strpos( $file, '.php' ) ||
+ ( strpos( file_get_contents( $file ), '$maintClass' ) === false ) ) {
continue;
}
require( $file );
}
}
return self::$mCoreScripts;
- */
}
}