Index: trunk/phase3/maintenance/Maintenance.php |
— | — | @@ -728,8 +728,6 @@ |
729 | 729 | * @return array |
730 | 730 | */ |
731 | 731 | private static function getCoreScripts() { |
732 | | - return array(); |
733 | | - /** |
734 | 732 | if( !self::$mCoreScripts ) { |
735 | 733 | self::disableSetup(); |
736 | 734 | $paths = array( |
— | — | @@ -742,8 +740,11 @@ |
743 | 741 | foreach( $paths as $p ) { |
744 | 742 | $handle = opendir( $p ); |
745 | 743 | while( ( $file = readdir( $handle ) ) !== false ) { |
| 744 | + if( $file == 'Maintenance.php' ) |
| 745 | + continue; |
746 | 746 | $file = $p . '/' . $file; |
747 | | - if( is_dir( $file ) || !strpos( $file, '.php' ) ) { |
| 747 | + if( is_dir( $file ) || !strpos( $file, '.php' ) || |
| 748 | + ( strpos( file_get_contents( $file ), '$maintClass' ) === false ) ) { |
748 | 749 | continue; |
749 | 750 | } |
750 | 751 | require( $file ); |
— | — | @@ -756,6 +757,5 @@ |
757 | 758 | } |
758 | 759 | } |
759 | 760 | return self::$mCoreScripts; |
760 | | - */ |
761 | 761 | } |
762 | 762 | } |