dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4ac4b16
)
Make this work by only loading things with a maintClass.
author
Chad Horohoe
<demon@users.mediawiki.org>
Wed, 5 Aug 2009 00:23:10 +0000
(
00:23
+0000)
committer
Chad Horohoe
<demon@users.mediawiki.org>
Wed, 5 Aug 2009 00:23:10 +0000
(
00:23
+0000)
maintenance/Maintenance.php
patch
|
blob
|
history
diff --git
a/maintenance/Maintenance.php
b/maintenance/Maintenance.php
index
4cc49d6
..
4616c71
100644
(file)
--- a/
maintenance/Maintenance.php
+++ b/
maintenance/Maintenance.php
@@
-728,8
+728,6
@@
abstract class Maintenance {
* @return array
*/
private static function getCoreScripts() {
* @return array
*/
private static function getCoreScripts() {
- return array();
- /**
if( !self::$mCoreScripts ) {
self::disableSetup();
$paths = array(
if( !self::$mCoreScripts ) {
self::disableSetup();
$paths = array(
@@
-742,8
+740,11
@@
abstract class Maintenance {
foreach( $paths as $p ) {
$handle = opendir( $p );
while( ( $file = readdir( $handle ) ) !== false ) {
foreach( $paths as $p ) {
$handle = opendir( $p );
while( ( $file = readdir( $handle ) ) !== false ) {
+ if( $file == 'Maintenance.php' )
+ continue;
$file = $p . '/' . $file;
$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 );
continue;
}
require( $file );
@@
-756,6
+757,5
@@
abstract class Maintenance {
}
}
return self::$mCoreScripts;
}
}
return self::$mCoreScripts;
- */
}
}
}
}