* Ported $wgCopyrightIcon setting from REL1_3A
authorBrion Vibber <brion@users.mediawiki.org>
Tue, 28 Dec 2004 22:02:19 +0000 (22:02 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Tue, 28 Dec 2004 22:02:19 +0000 (22:02 +0000)
includes/DefaultSettings.php
includes/Skin.php

index a049130..030d7ea 100644 (file)
@@ -727,6 +727,9 @@ $wgRightsUrl = NULL;
 $wgRightsText = NULL;
 $wgRightsIcon = NULL;
 
+# Set this to some HTML to override the rights icon with an arbitrary logo
+$wgCopyrightIcon = NULL;
+
 # Set this to true if you want detailed copyright information forms on Upload.
 $wgUseCopyrightUpload = false;
 
index 2c989b0..30d013b 100644 (file)
@@ -805,17 +805,19 @@ class Skin extends Linker {
        }
 
        function getCopyrightIcon() {
-               global $wgRightsPage, $wgRightsUrl, $wgRightsText, $wgRightsIcon;
+               global $wgRightsPage, $wgRightsUrl, $wgRightsText, $wgRightsIcon, $wgCopyrightIcon;
                $out = '';
-               if( $wgRightsIcon ) {
+               if ( isset( $wgCopyrightIcon ) && $wgCopyrightIcon ) {
+                       $out = $wgCopyrightIcon;
+               } else if ( $wgRightsIcon ) {
                        $icon = htmlspecialchars( $wgRightsIcon );
-                       if( $wgRightsUrl ) {
+                       if ( $wgRightsUrl ) {
                                $url = htmlspecialchars( $wgRightsUrl );
                                $out .= '<a href="'.$url.'">';
                        }
                        $text = htmlspecialchars( $wgRightsText );
                        $out .= "<img src=\"$icon\" alt='$text' />";
-                       if( $wgRightsUrl ) {
+                       if ( $wgRightsUrl ) {
                                $out .= '</a>';
                        }
                }