*/
/**
- *
+ * A special page listing redirects to redirecting page.
+ * The software will automatically not follow double redirects, to prevent loops.
* @addtogroup SpecialPage
*/
class DoubleRedirectsPage extends PageQueryPage {
function isSyndicated() { return false; }
function getPageHeader( ) {
- #FIXME : probably need to add a backlink to the maintenance page.
- return '<p>'.wfMsg("doubleredirectstext")."</p><br />\n";
+ return wfMsgExt( 'doubleredirectstext', array( 'parse' ) );
}
function getSQLText( &$dbr, $namespace = null, $title = null ) {
}
}
if ( !$result ) {
- return '';
+ return '<s>' . $skin->makeLinkObj( $titleA, '', 'redirect=no' ) . '</s>';
}
$titleB = Title::makeTitle( $result->nsb, $result->tb );
$titleC = Title::makeTitle( $result->nsc, $result->tc );
- $linkA = $skin->makeKnownLinkObj( $titleA,'', 'redirect=no' );
+ $linkA = $skin->makeKnownLinkObj( $titleA, '', 'redirect=no' );
$edit = $skin->makeBrokenLinkObj( $titleA, "(".wfMsg("qbedit").")" , 'redirect=no');
$linkB = $skin->makeKnownLinkObj( $titleB, '', 'redirect=no' );
$linkC = $skin->makeKnownLinkObj( $titleC );
return $sdr->doQuery( $offset, $limit );
}
-?>
+