$hidetrans = $this->opts->getValue( 'hidetrans' );
$hideimages = $target->getNamespace() != NS_IMAGE || $this->opts->getValue( 'hideimages' );
- $fetchlinks = !$hidelinks || !$hideredirs;
+ $fetchlinks = (!$hidelinks || !$hideredirs);
// Make the query
$plConds = array(
);
$namespace = $this->opts->getValue( 'namespace' );
- if ( is_int($namespace) ){
+ if ( is_int($namespace) ) {
$plConds['page_namespace'] = $namespace;
$tlConds['page_namespace'] = $namespace;
}
if ( $from ) {
$tlConds[] = "tl_from >= $from";
$plConds[] = "pl_from >= $from";
+ $ilConds[] = "il_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';
$ilConds, __METHOD__, $options );
}
- if( ( !$fetchlinks || !$dbr->numRows( $plRes ) ) && ( $hidetrans || !$dbr->numRows( $tlRes ) ) && ( $hideimages || !$dbr->numRows( $ilRes ) ) ) {
+ if( ( !$fetchlinks || !$dbr->numRows($plRes) ) && ( $hidetrans || !$dbr->numRows($tlRes) ) && ( $hideimages || !$dbr->numRows($ilRes) ) ) {
if ( 0 == $level ) {
$wgOut->addHTML( $this->whatlinkshereForm() );
$errMsg = is_int($namespace) ? 'nolinkshere-ns' : 'nolinkshere';