Follow up r80205 magic, so that you can also use require.
[lhc/web/wiklou.git] / 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';
        }