$from = (int)$from; // just in case
$tlConds[] = "tl_from >= $from";
$plConds[] = "pl_from >= $from";
- }
+ }
// Read an extra row as an at-end check
$queryLimit = $limit + 1;
- // enforce join order, sometimes namespace selector may
+ // enforce join order, sometimes namespace selector may
// trigger filesorts which are far less efficient than scanning many entries
$options[] = 'STRAIGHT_JOIN';
$rows[$row->page_id] = $row;
}
$dbr->freeResult( $plRes );
-
+
}
if( !$this->hidetrans ) {
while ( $row = $dbr->fetchObject( $tlRes ) ) {
'target=' . $nt->getPrefixedUrl()
);
$wgOut->addHtml( ' <span class="mw-whatlinkshere-tools">(' . $wlh . ')</span>' );
-
+
if ( $row->page_is_redirect ) {
if ( $level < 2 ) {
$this->showIndirectLinks( $level + 1, $nt, $wgMaxRedirectLinksRetrieved );
}
return '<p>' . implode( ' | ', $links ) . '</p>';
}
-
}