From ca1f27edffa4961f666bdfac8cb01c3226ddb5e7 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Mon, 25 Jul 2011 19:54:14 +0000 Subject: [PATCH] Added include_once to shouldExecute() check --- maintenance/Maintenance.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maintenance/Maintenance.php b/maintenance/Maintenance.php index 6eb8c50239..075b121f79 100644 --- a/maintenance/Maintenance.php +++ b/maintenance/Maintenance.php @@ -145,7 +145,7 @@ abstract class Maintenance { if ( $bt[0]['class'] !== 'Maintenance' || $bt[0]['function'] !== 'shouldExecute' ) { return false; // last call should be to this function } - $includeFuncs = array( 'require_once', 'require', 'include' ); + $includeFuncs = array( 'require_once', 'require', 'include', 'include_once' ); for( $i=1; $i < count( $bt ); $i++ ) { if ( !in_array( $bt[$i]['function'], $includeFuncs ) ) { return false; // previous calls should all be "requires" -- 2.20.1