From 6d85585763eb0c0aa5d5c87c7df827217fa60ca1 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Fri, 1 Jun 2007 15:53:14 +0000 Subject: [PATCH] * (bug 10083) Fix for Special:Version breakage on PHP 5.2 with some hooks --- RELEASE-NOTES | 1 + includes/SpecialVersion.php | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) 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] ); -- 2.20.1