Index: trunk/extensions/LinkSuggest/LinkSuggest.php |
— | — | @@ -158,10 +158,10 @@ |
159 | 159 | } |
160 | 160 | } |
161 | 161 | |
162 | | - // comma separated list of namespaces to search in |
| 162 | + // list of namespaces to search in |
163 | 163 | if ( empty( $namespace ) ) { |
164 | 164 | // search only within content namespaces - default behaviour |
165 | | - $namespaces = implode( ',', $wgContentNamespaces ); |
| 165 | + $namespaces = $wgContentNamespaces; |
166 | 166 | } else { |
167 | 167 | // search only within a namespace from query |
168 | 168 | $namespaces = $namespace; |
— | — | @@ -181,7 +181,7 @@ |
182 | 182 | 'page_is_redirect = 0', |
183 | 183 | 'qc_type' => 'Mostlinked', |
184 | 184 | "LOWER(qc_title) LIKE '{$query}%'", |
185 | | - "qc_namespace IN ({$namespaces})" |
| 185 | + 'qc_namespace' => $namespaces |
186 | 186 | ), |
187 | 187 | __METHOD__, |
188 | 188 | array( 'ORDER BY' => 'qc_value DESC', 'LIMIT' => 10 ) |
— | — | @@ -197,7 +197,7 @@ |
198 | 198 | array( |
199 | 199 | "LOWER(page_title) LIKE '{$query}%'", |
200 | 200 | 'page_is_redirect' => 0, |
201 | | - "page_namespace IN ({$namespaces})" |
| 201 | + 'page_namespace' => $namespaces |
202 | 202 | ), |
203 | 203 | __METHOD__, |
204 | 204 | array( |