Making INNER JOIN implicit
[lhc/web/wiklou.git] / includes / SpecialDoubleRedirects.php
index a010a2b..9bfa7e5 100644 (file)
@@ -23,7 +23,7 @@ class DoubleRedirectsPage extends PageQueryPage {
        }
 
        function getSQLText( &$dbr, $namespace = null, $title = null ) {
-               
+
                list( $page, $redirect ) = $dbr->tableNamesN( 'page', 'redirect' );
 
                $limitToTitle = !( $namespace === null && $title === null );
@@ -48,7 +48,7 @@ class DoubleRedirectsPage extends PageQueryPage {
 
                return $sql;
        }
-       
+
        function getSQL() {
                $dbr = wfGetDB( DB_SLAVE );
                return $this->getSQLText( $dbr );
@@ -60,7 +60,7 @@ class DoubleRedirectsPage extends PageQueryPage {
 
        function formatResult( $skin, $result ) {
                global $wgContLang;
-       
+
                $fname = 'DoubleRedirectsPage::formatResult';
                $titleA = Title::makeTitle( $result->namespace, $result->title );
 
@@ -74,13 +74,13 @@ class DoubleRedirectsPage extends PageQueryPage {
                        }
                }
                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 );
@@ -101,4 +101,3 @@ function wfSpecialDoubleRedirects() {
        return $sdr->doQuery( $offset, $limit );
 
 }
-