* (bug 10083) Fix for Special:Version breakage on PHP 5.2 with some hooks
authorBrion Vibber <brion@users.mediawiki.org>
Fri, 1 Jun 2007 15:53:14 +0000 (15:53 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Fri, 1 Jun 2007 15:53:14 +0000 (15:53 +0000)
RELEASE-NOTES
includes/SpecialVersion.php

index 6d3917f..a570a06 100644 (file)
@@ -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 ==
index 6de2da1..0b63393 100644 (file)
@@ -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] );