From 02b6cf59b57e041881e09feb1c97eb0388e10e86 Mon Sep 17 00:00:00 2001 From: Platonides Date: Mon, 21 Feb 2011 22:36:35 +0000 Subject: [PATCH] Follow up r80205 magic, so that you can also use require. --- maintenance/Maintenance.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'; } -- 2.20.1