* The url is now optional
authorÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Wed, 13 Jul 2005 01:05:22 +0000 (01:05 +0000)
committerÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Wed, 13 Jul 2005 01:05:22 +0000 (01:05 +0000)
includes/DefaultSettings.php
includes/SpecialVersion.php

index 37be6f2..9f4971e 100644 (file)
@@ -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:
  *
  * <code>
  * $wgExtensionCredits[$type][] = array(
index 4709092..4423c7c 100644 (file)
@@ -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";
+                                               
                                }
                        }