/**
* A special page listing redirects to redirecting page.
- * The software will not procede double redirects automaticly to prevent loops.
+ * 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 ) {
-
+
list( $page, $redirect ) = $dbr->tableNamesN( 'page', 'redirect' );
$limitToTitle = !( $namespace === null && $title === null );
return $sql;
}
-
+
function getSQL() {
$dbr = wfGetDB( DB_SLAVE );
return $this->getSQLText( $dbr );
function formatResult( $skin, $result ) {
global $wgContLang;
-
+
$fname = 'DoubleRedirectsPage::formatResult';
$titleA = Title::makeTitle( $result->namespace, $result->title );
}
}
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 );
}
-?>