r93098 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r93097‎ | r93098 | r93099 >
Date:19:54, 25 July 2011
Author:aaron
Status:ok
Tags:
Comment:
Added include_once to shouldExecute() check
Modified paths:
  • /trunk/phase3/maintenance/Maintenance.php (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/Maintenance.php
@@ -145,7 +145,7 @@
146146 if ( $bt[0]['class'] !== 'Maintenance' || $bt[0]['function'] !== 'shouldExecute' ) {
147147 return false; // last call should be to this function
148148 }
149 - $includeFuncs = array( 'require_once', 'require', 'include' );
 149+ $includeFuncs = array( 'require_once', 'require', 'include', 'include_once' );
150150 for( $i=1; $i < count( $bt ); $i++ ) {
151151 if ( !in_array( $bt[$i]['function'], $includeFuncs ) ) {
152152 return false; // previous calls should all be "requires"

Status & tagging log