http://www.mediawiki.org/wiki/Special:Code/MediaWiki/55158

Revision: 55158
Author:   emufarmers
Date:     2009-08-16 21:48:15 +0000 (Sun, 16 Aug 2009)

Log Message:
-----------
Fix compatibility with PHP 5.2.x and below:
Explicitly qualify the class name for preg_replace_callback() instead of using 
self::

Modified Paths:
--------------
    branches/new-installer/phase3/includes/installer/WebInstaller.php

Modified: branches/new-installer/phase3/includes/installer/WebInstaller.php
===================================================================
--- branches/new-installer/phase3/includes/installer/WebInstaller.php   
2009-08-16 20:56:48 UTC (rev 55157)
+++ branches/new-installer/phase3/includes/installer/WebInstaller.php   
2009-08-16 21:48:15 UTC (rev 55158)
@@ -1431,8 +1431,8 @@
        function getFileName() { return 'RELEASE-NOTES'; } 
        function getFileContents() {
                $text = parent::getFileContents();
-               $text = preg_replace_callback('/\(bug (\d+)\)/', 
'self::replaceBugLinks', $text );
-               $text = preg_replace_callback('/(\$wg[a-z0-9_]+)/i', 
'self::replaceConfigLinks', $text );
+               $text = preg_replace_callback('/\(bug (\d+)\)/', 
'WebInstaller_ReleaseNotes::replaceBugLinks', $text );
+               $text = preg_replace_callback('/(\$wg[a-z0-9_]+)/i', 
'WebInstaller_ReleaseNotes::replaceConfigLinks', $text );
                return $text;
        }
        private static function replaceBugLinks( $matches ) {



_______________________________________________
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to