Follow up r80205 magic, so that you can also use require.
authorPlatonides <platonides@users.mediawiki.org>
Mon, 21 Feb 2011 22:36:35 +0000 (22:36 +0000)
committerPlatonides <platonides@users.mediawiki.org>
Mon, 21 Feb 2011 22:36:35 +0000 (22:36 +0000)
maintenance/Maintenance.php

index df2c63c..fe0e07a 100644 (file)
@@ -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';
        }