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:
f909c62
)
Follow up r80205 magic, so that you can also use require.
author
Platonides
<platonides@users.mediawiki.org>
Mon, 21 Feb 2011 22:36:35 +0000
(22:36 +0000)
committer
Platonides
<platonides@users.mediawiki.org>
Mon, 21 Feb 2011 22:36:35 +0000
(22:36 +0000)
maintenance/Maintenance.php
patch
|
blob
|
history
diff --git
a/maintenance/Maintenance.php
b/maintenance/Maintenance.php
index
df2c63c
..
fe0e07a
100644
(file)
--- a/
maintenance/Maintenance.php
+++ b/
maintenance/Maintenance.php
@@
-130,7
+130,7
@@
abstract class Maintenance {
if( count( $bt ) !== 2 ) {
return false;
}
- return
$bt[1]['function'] == 'require_once'
&&
+ return
( $bt[1]['function'] == 'require_once' || $bt[1]['function'] == 'require' )
&&
$bt[0]['class'] == 'Maintenance' &&
$bt[0]['function'] == 'shouldExecute';
}