From: Jack Phoenix Date: Fri, 19 Nov 2010 21:23:50 +0000 (+0000) Subject: wrap the redirect message (arrow image + target page name) into a div that has the... X-Git-Tag: 1.31.0-rc.0~33807 X-Git-Url: http://git.cyclocoop.org/data/Luca_Pacioli_%28Gemaelde%29.jpeg?a=commitdiff_plain;h=27292e21dca027826bf54e28b894b3ccbc2184d1;p=lhc%2Fweb%2Fwiklou.git wrap the redirect message (arrow image + target page name) into a div that has the class "redirectMsg" so that the redirection arrow can be customized with on-wiki CSS instead of having to overwrite skins/common/images/redirect(ltr|rtl).png --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 27911d5406..3cd04ed7da 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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 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 diff --git a/includes/Article.php b/includes/Article.php index 5b0e1c2e49..7a99bef3a9 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -1571,8 +1571,9 @@ class Article { } $imageUrl = $wgStylePath . '/common/images/redirect' . $imageDir . '.png'; - return Html::element( 'img', array( 'src' => $imageUrl, 'alt' => '#REDIRECT' ) ) . - '' . $link . ''; + return '
' . + Html::element( 'img', array( 'src' => $imageUrl, 'alt' => '#REDIRECT' ) ) . + '' . $link . '
'; } /**