$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(
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";
+
}
}