From 27292e21dca027826bf54e28b894b3ccbc2184d1 Mon Sep 17 00:00:00 2001 From: Jack Phoenix Date: Fri, 19 Nov 2010 21:23:50 +0000 Subject: [PATCH] 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 --- RELEASE-NOTES | 3 +++ includes/Article.php | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) 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 . '
'; } /** -- 2.20.1