Commit some fixes for comments on r77741
authorDaniel Friesen <dantman@users.mediawiki.org>
Thu, 3 Feb 2011 00:00:58 +0000 (00:00 +0000)
committerDaniel Friesen <dantman@users.mediawiki.org>
Thu, 3 Feb 2011 00:00:58 +0000 (00:00 +0000)
includes/DefaultSettings.php
includes/Skin.php
includes/SkinTemplate.php

index 2fd7a86..116aacc 100644 (file)
@@ -2329,11 +2329,13 @@ $wgExperimentalHtmlIds = true;
  * $wgFooterIcons itself is a key/value array.
  * The key is the name of a block that the icons will be wrapped in. The final id varies 
  * by skin; Monobook and Vector will turn poweredby into f-poweredbyico while Modern 
- * turns it into mw_poweredby.  The value is a key/value array of icons. The key may or 
- * may not be used by the skin but it can be used to find the icon and unset it or 
- * change the icon if needed. This is useful for disabling icons that are set by extensions.
+ * turns it into mw_poweredby.
+ * The value is either key/value array of icons or a string.
+ * In the key/value array the key may or may not be used by the skin but it can
+ * be used to find the icon and unset it or change the icon if needed.
+ * This is useful for disabling icons that are set by extensions.
  * The value should be either a string or an array. If it is a string it will be output 
- * directly, however some skins may choose to ignore it. An array is the preferred format 
+ * directly as html, however some skins may choose to ignore it. An array is the preferred format 
  * for the icon, the following keys are used:
  *   src: An absolute url to the image to use for the icon, this is recommended
  *        but not required, however some skins will ignore icons without an image
@@ -4352,7 +4354,10 @@ $wgRightsIcon = null;
  */
 $wgLicenseTerms = false;
 
-/** Set this to some HTML to override the rights icon with an arbitrary logo */
+/**
+ * Set this to some HTML to override the rights icon with an arbitrary logo
+ * @deprecated Use $wgFooterIcons['copyright']['copyright']
+ */
 $wgCopyrightIcon = null;
 
 /** Set this to true if you want detailed copyright information forms on Upload. */
index b5309f4..b5f407d 100644 (file)
@@ -1698,7 +1698,7 @@ class Skin extends Linker {
                if ( is_string( $icon ) ) {
                        $html = $icon;
                } else { // Assuming array
-                       $url = $icon["url"];
+                       $url = isset($icon["url"]) ? $icon["url"] : null;
                        unset( $icon["url"] );
                        if ( isset( $icon["src"] ) && $withImage === 'withImage' ) {
                                $html = Html::element( 'img', $icon ); // do this the lazy way, just pass icon data as an attribute array
index 73c60bc..0e9b52b 100644 (file)
@@ -1727,7 +1727,6 @@ abstract class BaseTemplate extends QuickTemplate {
                                }
                        }
                } elseif ( $option == 'nocopyright' ) {
-                       $footericons = $this->data['footericons'];
                        unset( $footericons['copyright']['copyright'] );
                        if ( count( $footericons['copyright'] ) <= 0 ) {
                                unset( $footericons['copyright'] );