Followup r64047: pass static callbacks in array form, not string form
authorRoan Kattouw <catrope@users.mediawiki.org>
Mon, 13 Dec 2010 16:39:48 +0000 (16:39 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Mon, 13 Dec 2010 16:39:48 +0000 (16:39 +0000)
includes/revisiondelete/RevisionDeleter.php

index d47fcec..5caba11 100644 (file)
@@ -77,7 +77,7 @@ class RevisionDeleter {
                $msgFunc = $forContent ? "wfMsgForContent" : "wfMsg";
                
                $changes = self::getChanges( $nbitfield, $obitfield );
-               array_walk($changes, 'RevisionDeleter::expandMessageArray', $forContent);
+               array_walk( $changes, array( __CLASS__, 'expandMessageArray' ), $forContent );
                
                $changesText = array();
                
@@ -98,8 +98,8 @@ class RevisionDeleter {
        }
        
        private static function expandMessageArray(& $msg, $key, $forContent) {
-               if ( is_array ($msg) ) {
-                       array_walk($msg, 'RevisionDeleter::expandMessageArray', $forContent);
+               if ( is_array ( $msg ) ) {
+                       array_walk( $msg, array( __CLASS__, 'expandMessageArray' ), $forContent );
                } else {
                        if ( $forContent ) {
                                $msg = wfMsgForContent($msg);
@@ -267,4 +267,4 @@ class RevisionDeleter {
                }
                return '';
        }
-}
\ No newline at end of file
+}