r74975 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r74974‎ | r74975 | r74976 >
Date:22:37, 18 October 2010
Author:demon
Status:ok
Tags:
Comment:
Followup r68760: add comment
Modified paths:
  • /trunk/phase3/includes/WebStart.php (modified) (history)
  • /trunk/phase3/maintenance/doMaintenance.php (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/doMaintenance.php
@@ -67,6 +67,7 @@
6868 require_once( "$IP/includes/DefaultSettings.php" );
6969
7070 $callback = MW_CONFIG_CALLBACK;
 71+ # PHP 5.1 doesn't support "class::method" for call_user_func, so split it
7172 if ( strpos( $callback, '::' ) !== false ) {
7273 $callback = explode( '::', $callback, 2);
7374 }
Index: trunk/phase3/includes/WebStart.php
@@ -97,6 +97,7 @@
9898 require_once( "$IP/includes/DefaultSettings.php" );
9999
100100 $callback = MW_CONFIG_CALLBACK;
 101+ # PHP 5.1 doesn't support "class::method" for call_user_func, so split it
101102 if ( strpos( $callback, '::' ) !== false ) {
102103 $callback = explode( '::', $callback, 2);
103104 }

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r68760r68756 - Make the use of MW_CONFIG_CALLBACK compatible with PHP 5.1mah04:25, 30 June 2010

Status & tagging log