From: Brion Vibber Date: Fri, 1 Jun 2007 15:53:14 +0000 (+0000) Subject: * (bug 10083) Fix for Special:Version breakage on PHP 5.2 with some hooks X-Git-Tag: 1.31.0-rc.0~52731 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=6d85585763eb0c0aa5d5c87c7df827217fa60ca1;p=lhc%2Fweb%2Fwiklou.git * (bug 10083) Fix for Special:Version breakage on PHP 5.2 with some hooks --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 6d3917f9bc..a570a0667c 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -103,6 +103,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 7993) support mathematical symbol classes * (bug 10007) Allow Block IP to work with Postgrs again. * Add Google Wireless Transcoder to the Unicode editing blacklist +* (bug 10083) Fix for Special:Version breakage on PHP 5.2 with some hooks == MediaWiki API changes since 1.10 == diff --git a/includes/SpecialVersion.php b/includes/SpecialVersion.php index 6de2da1190..0b63393e90 100644 --- a/includes/SpecialVersion.php +++ b/includes/SpecialVersion.php @@ -250,7 +250,10 @@ class SpecialVersion { * @return mixed */ function arrayToString( $list ) { - if ( ! is_array( $list ) ) { + if( is_object( $list ) ) { + $class = get_class( $list ); + return "($class)"; + } elseif ( ! is_array( $list ) ) { return $list; } else { $class = get_class( $list[0] );