From: Platonides Date: Mon, 21 Feb 2011 22:36:35 +0000 (+0000) Subject: Follow up r80205 magic, so that you can also use require. X-Git-Tag: 1.31.0-rc.0~31835 X-Git-Url: http://git.cyclocoop.org/clavettes/images/siteon3.jpg?a=commitdiff_plain;h=02b6cf59b57e041881e09feb1c97eb0388e10e86;p=lhc%2Fweb%2Fwiklou.git Follow up r80205 magic, so that you can also use require. --- diff --git a/maintenance/Maintenance.php b/maintenance/Maintenance.php index df2c63cca4..fe0e07aa35 100644 --- 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'; }