summaryrefslogtreecommitdiff
path: root/includes/SpecialListredirects.php
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2008-03-21 11:49:34 +0100
committerPierre Schmitz <pierre@archlinux.de>2008-03-21 11:49:34 +0100
commit086ae52d12011746a75f5588e877347bc0457352 (patch)
treee73263c7a29d0f94fafb874562610e16eb292ba8 /includes/SpecialListredirects.php
parent749e7fb2bae7bbda855de3c9e319435b9f698ff7 (diff)
Update auf MediaWiki 1.12.0
Diffstat (limited to 'includes/SpecialListredirects.php')
-rw-r--r--includes/SpecialListredirects.php15
1 files changed, 5 insertions, 10 deletions
diff --git a/includes/SpecialListredirects.php b/includes/SpecialListredirects.php
index 581ea55b..92bd66e4 100644
--- a/includes/SpecialListredirects.php
+++ b/includes/SpecialListredirects.php
@@ -30,8 +30,7 @@ class ListredirectsPage extends QueryPage {
# Make a link to the redirect itself
$rd_title = Title::makeTitle( $result->namespace, $result->title );
- $arr = $wgContLang->getArrow() . $wgContLang->getDirMark();
- $rd_link = $skin->makeKnownLinkObj( $rd_title, '', 'redirect=no' );
+ $rd_link = $skin->makeLinkObj( $rd_title, '', 'redirect=no' );
# Find out where the redirect leads
$revision = Revision::newFromTitle( $rd_title );
@@ -39,19 +38,15 @@ class ListredirectsPage extends QueryPage {
# Make a link to the destination page
$target = Title::newFromRedirect( $revision->getText() );
if( $target ) {
+ $arr = $wgContLang->getArrow() . $wgContLang->getDirMark();
$targetLink = $skin->makeLinkObj( $target );
+ return "$rd_link $arr $targetLink";
} else {
- /** @todo Put in some decent error display here */
- $targetLink = '*';
+ return "<s>$rd_link</s>";
}
} else {
- /** @todo Put in some decent error display here */
- $targetLink = '*';
+ return "<s>$rd_link</s>";
}
-
- # Format the whole thing and return it
- return "$rd_link $arr $targetLink";
-
}
}