From 0138b0952be8afb622c5461795ccba1333d097c2 Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Mon, 18 Oct 2010 22:37:44 +0000 Subject: [PATCH] Followup r68760: add comment --- includes/WebStart.php | 1 + maintenance/doMaintenance.php | 1 + 2 files changed, 2 insertions(+) diff --git a/includes/WebStart.php b/includes/WebStart.php index dee5d4b90c..4060c55c59 100644 --- a/includes/WebStart.php +++ b/includes/WebStart.php @@ -97,6 +97,7 @@ if ( defined( 'MW_CONFIG_CALLBACK' ) ) { require_once( "$IP/includes/DefaultSettings.php" ); $callback = MW_CONFIG_CALLBACK; + # PHP 5.1 doesn't support "class::method" for call_user_func, so split it if ( strpos( $callback, '::' ) !== false ) { $callback = explode( '::', $callback, 2); } diff --git a/maintenance/doMaintenance.php b/maintenance/doMaintenance.php index 7547a498f4..bf51c2c3b1 100644 --- a/maintenance/doMaintenance.php +++ b/maintenance/doMaintenance.php @@ -67,6 +67,7 @@ if ( defined( 'MW_CONFIG_CALLBACK' ) ) { require_once( "$IP/includes/DefaultSettings.php" ); $callback = MW_CONFIG_CALLBACK; + # PHP 5.1 doesn't support "class::method" for call_user_func, so split it if ( strpos( $callback, '::' ) !== false ) { $callback = explode( '::', $callback, 2); } -- 2.20.1