From: Ævar Arnfjörð Bjarmason Date: Wed, 13 Jul 2005 01:05:22 +0000 (+0000) Subject: * The url is now optional X-Git-Tag: 1.5.0beta4~150 X-Git-Url: http://git.cyclocoop.org/%28%28?a=commitdiff_plain;h=eb8b5943298b4fee8f3e04f2a190c451a4dfe411;p=lhc%2Fweb%2Fwiklou.git * The url is now optional --- diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index 37be6f2e76..9f4971eb0c 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -1226,8 +1226,8 @@ $wgUseXMLparser = false ; $wgSkinExtensionFunctions = array(); $wgExtensionFunctions = array(); /** - * An array of extension types, their authors, url and name, add to it from - * an extension like: + * An array of extension names, their authors, and optionally, urls + * add to it from an extension like: * * * $wgExtensionCredits[$type][] = array( diff --git a/includes/SpecialVersion.php b/includes/SpecialVersion.php index 47090927d6..4423c7cf92 100644 --- a/includes/SpecialVersion.php +++ b/includes/SpecialVersion.php @@ -53,7 +53,13 @@ or [http://www.gnu.org/copyleft/gpl.html read it online] if ( count( @$wgExtensionCredits[$type] ) > 0 ) { $out .= "=== $text ===\n"; foreach ( $wgExtensionCredits[$type] as $extension ) { - $out .= '* [' . $extension['url'] . ' ' . $extension['name'] . '] by ' . $extension['author'] . "\n"; + if ( isset( $extension['url'] ) ) { + $out .= '* [' . $extension['url'] . ' ' . $extension['name'] . ']'; + } else { + $out .= '* ' . $extension['name']; + } + $out .= ' by ' . $extension['author'] . "\n"; + } }