wrap the redirect message (arrow image + target page name) into a div that has the...
authorJack Phoenix <ashley@users.mediawiki.org>
Fri, 19 Nov 2010 21:23:50 +0000 (21:23 +0000)
committerJack Phoenix <ashley@users.mediawiki.org>
Fri, 19 Nov 2010 21:23:50 +0000 (21:23 +0000)
RELEASE-NOTES
includes/Article.php

index 27911d5..3cd04ed 100644 (file)
@@ -206,6 +206,9 @@ LocalSettings.php. The specific bugs are listed below in the general notes.
 * Added CSS print pagination to the print stylesheets
 * (bug 25960) Add <link rel=canonical"> for File pages of shared/foreign
   file repositories.
+* When viewing a redirect, the redirect arrow and redirection target are both
+  wrapped in a div that has the class "redirectMsg" so that the redirection
+  arrow can be customized with CSS
 
 === Bug fixes in 1.17 ===
 * (bug 17560) Half-broken deletion moved image files to deletion archive
index 5b0e1c2..7a99bef 100644 (file)
@@ -1571,8 +1571,9 @@ class Article {
                }
 
                $imageUrl = $wgStylePath . '/common/images/redirect' . $imageDir . '.png';              
-               return Html::element( 'img', array( 'src' => $imageUrl, 'alt' => '#REDIRECT' ) ) .
-                       '<span class="redirectText">' . $link . '</span>';
+               return '<div class="redirectMsg">' .
+                       Html::element( 'img', array( 'src' => $imageUrl, 'alt' => '#REDIRECT' ) ) .
+                       '<span class="redirectText">' . $link . '</span></div>';
        }
 
        /**