includes/api/ApiQueryAllRevisions.php 1 location
|
@@ 58-62 (lines=5) @@
|
55 |
|
sort( $params['namespace'] ); |
56 |
|
if ( $params['namespace'] != MWNamespace::getValidNamespaces() ) { |
57 |
|
$needPageTable = true; |
58 |
|
if ( $this->getConfig()->get( 'MiserMode' ) ) { |
59 |
|
$miser_ns = $params['namespace']; |
60 |
|
} else { |
61 |
|
$this->addWhere( [ 'page_namespace' => $params['namespace'] ] ); |
62 |
|
} |
63 |
|
} |
64 |
|
} |
65 |
|
|
includes/api/ApiQueryCategoryMembers.php 1 location
|
@@ 99-103 (lines=5) @@
|
96 |
|
// Scanning large datasets for rare categories sucks, and I already told |
97 |
|
// how to have efficient subcategory access :-) ~~~~ (oh well, domas) |
98 |
|
$miser_ns = []; |
99 |
|
if ( $this->getConfig()->get( 'MiserMode' ) ) { |
100 |
|
$miser_ns = $params['namespace']; |
101 |
|
} else { |
102 |
|
$this->addWhereFld( 'page_namespace', $params['namespace'] ); |
103 |
|
} |
104 |
|
|
105 |
|
$dir = in_array( $params['dir'], [ 'asc', 'ascending', 'newer' ] ) ? 'newer' : 'older'; |
106 |
|
|
includes/api/ApiQueryExtLinksUsage.php 1 location
|
@@ 63-67 (lines=5) @@
|
60 |
|
$this->addWhere( 'page_id=el_from' ); |
61 |
|
|
62 |
|
$miser_ns = []; |
63 |
|
if ( $this->getConfig()->get( 'MiserMode' ) ) { |
64 |
|
$miser_ns = $params['namespace']; |
65 |
|
} else { |
66 |
|
$this->addWhereFld( 'page_namespace', $params['namespace'] ); |
67 |
|
} |
68 |
|
|
69 |
|
// Normalize query to match the normalization applied for the externallinks table |
70 |
|
$query = Parser::normalizeLinkUrl( $query ); |
includes/api/ApiQueryBacklinksprop.php 1 location
|
@@ 150-154 (lines=5) @@
|
147 |
|
$miser_ns = null; |
148 |
|
if ( $params['namespace'] !== null ) { |
149 |
|
if ( empty( $settings['from_namespace'] ) ) { |
150 |
|
if ( $this->getConfig()->get( 'MiserMode' ) ) { |
151 |
|
$miser_ns = $params['namespace']; |
152 |
|
} else { |
153 |
|
$this->addWhereFld( 'page_namespace', $params['namespace'] ); |
154 |
|
} |
155 |
|
} else { |
156 |
|
$this->addWhereFld( "{$p}_from_namespace", $params['namespace'] ); |
157 |
|
if ( !empty( $settings['from_namespace'] ) && count( $params['namespace'] ) > 1 ) { |