summaryrefslogtreecommitdiff
path: root/includes/SpecialListredirects.php
diff options
context:
space:
mode:
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";
-
}
}