Index: trunk/phase3/includes/SpecialListredirects.php |
— | — | @@ -30,8 +30,7 @@ |
31 | 31 | |
32 | 32 | # Make a link to the redirect itself |
33 | 33 | $rd_title = Title::makeTitle( $result->namespace, $result->title ); |
34 | | - $arr = $wgContLang->getArrow() . $wgContLang->getDirMark(); |
35 | | - $rd_link = $skin->makeKnownLinkObj( $rd_title, '', 'redirect=no' ); |
| 34 | + $rd_link = $skin->makeLinkObj( $rd_title, '', 'redirect=no' ); |
36 | 35 | |
37 | 36 | # Find out where the redirect leads |
38 | 37 | $revision = Revision::newFromTitle( $rd_title ); |
— | — | @@ -39,19 +38,15 @@ |
40 | 39 | # Make a link to the destination page |
41 | 40 | $target = Title::newFromRedirect( $revision->getText() ); |
42 | 41 | if( $target ) { |
| 42 | + $arr = $wgContLang->getArrow() . $wgContLang->getDirMark(); |
43 | 43 | $targetLink = $skin->makeLinkObj( $target ); |
| 44 | + return "$rd_link $arr $targetLink"; |
44 | 45 | } else { |
45 | | - /** @todo Put in some decent error display here */ |
46 | | - $targetLink = '*'; |
| 46 | + return "<s>$rd_link</s>"; |
47 | 47 | } |
48 | 48 | } else { |
49 | | - /** @todo Put in some decent error display here */ |
50 | | - $targetLink = '*'; |
| 49 | + return "<s>$rd_link</s>"; |
51 | 50 | } |
52 | | - |
53 | | - # Format the whole thing and return it |
54 | | - return "$rd_link $arr $targetLink"; |
55 | | - |
56 | 51 | } |
57 | 52 | |
58 | 53 | } |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -56,6 +56,7 @@ |
57 | 57 | * Fix initial statistics when installing: add correct values |
58 | 58 | * (bug 11342) Fix several 'returnto' links in permissions/error pages which |
59 | 59 | linked to the main page instead of targetted page |
| 60 | +* Strike the link to the redirect rather than using an asterisk in Special:Listredirects |
60 | 61 | |
61 | 62 | |
62 | 63 | === API changes in 1.12 === |