r22630 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r22629‎ | r22630 | r22631 >
Date:15:53, 1 June 2007
Author:brion
Status:old
Tags:
Comment:
* (bug 10083) Fix for Special:Version breakage on PHP 5.2 with some hooks
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/includes/SpecialVersion.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/SpecialVersion.php
@@ -250,7 +250,10 @@
251251 * @return mixed
252252 */
253253 function arrayToString( $list ) {
254 - if ( ! is_array( $list ) ) {
 254+ if( is_object( $list ) ) {
 255+ $class = get_class( $list );
 256+ return "($class)";
 257+ } elseif ( ! is_array( $list ) ) {
255258 return $list;
256259 } else {
257260 $class = get_class( $list[0] );
Index: trunk/phase3/RELEASE-NOTES
@@ -103,6 +103,7 @@
104104 * (bug 7993) support mathematical symbol classes
105105 * (bug 10007) Allow Block IP to work with Postgrs again.
106106 * Add Google Wireless Transcoder to the Unicode editing blacklist
 107+* (bug 10083) Fix for Special:Version breakage on PHP 5.2 with some hooks
107108
108109
109110 == MediaWiki API changes since 1.10 ==

Follow-up revisions

RevisionCommit summaryAuthorDate
r22652Merged revisions 22619-22651 via svnmerge from...david06:10, 2 June 2007