From cecb985bee3bdd252e1b8dc0bd500b37cd52be01 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Wed, 16 May 2007 20:58:53 +0000 Subject: Aktualisierung auf MediaWiki 1.10.0 Plugins angepasst und verbessert kleine Korrekturen am Design --- includes/SpecialVersion.php | 28 +++++++++------------------- 1 file changed, 9 insertions(+), 19 deletions(-) (limited to 'includes/SpecialVersion.php') diff --git a/includes/SpecialVersion.php b/includes/SpecialVersion.php index dba694c0..6de2da11 100644 --- a/includes/SpecialVersion.php +++ b/includes/SpecialVersion.php @@ -2,10 +2,7 @@ /**#@+ * Give information about the version of MediaWiki, PHP, the DB and extensions * - * @package MediaWiki - * @subpackage SpecialPage - * - * @bug 2019, 4531 + * @addtogroup SpecialPage * * @author Ævar Arnfjörð Bjarmason * @copyright Copyright © 2005, Ævar Arnfjörð Bjarmason @@ -50,10 +47,7 @@ class SpecialVersion { */ function MediaWikiCredits() { $version = self::getVersion(); - $dbr =& wfGetDB( DB_SLAVE ); - - global $wgLanguageNames, $wgLanguageCode; - $mwlang = $wgLanguageNames[$wgLanguageCode]; + $dbr = wfGetDB( DB_SLAVE ); $ret = "__NOTOC__ @@ -110,21 +104,19 @@ class SpecialVersion { $out .= wfOpenElement('table', array('id' => 'sv-ext') ); foreach ( $extensionTypes as $type => $text ) { - if ( count( @$wgExtensionCredits[$type] ) ) { + if ( isset ( $wgExtensionCredits[$type] ) && count ( $wgExtensionCredits[$type] ) ) { $out .= $this->openExtType( $text ); usort( $wgExtensionCredits[$type], array( $this, 'compare' ) ); foreach ( $wgExtensionCredits[$type] as $extension ) { - wfSuppressWarnings(); $out .= $this->formatCredits( - $extension['name'], - $extension['version'], - $extension['author'], - $extension['url'], - $extension['description'] + isset ( $extension['name'] ) ? $extension['name'] : '', + isset ( $extension['version'] ) ? $extension['version'] : null, + isset ( $extension['author'] ) ? $extension['author'] : '', + isset ( $extension['url'] ) ? $extension['url'] : null, + isset ( $extension['description'] ) ? $extension['description'] : '' ); - wfRestoreWarnings(); } } } @@ -195,7 +187,7 @@ class SpecialVersion { foreach ($myWgHooks as $hook => $hooks) $ret .= "$hook" . $this->listToText( $hooks ) . "\n"; - + $ret .= ''; return $ret; } else @@ -269,8 +261,6 @@ class SpecialVersion { /** * Retrieve the revision number of a Subversion working directory. * - * @bug 7335 - * * @param string $dir * @return mixed revision number as int, or false if not a SVN checkout */ -- cgit v1.2.3-54-g00ecf