mirror of
https://github.com/diocloid/LinkTitles.git
synced 2025-07-13 17:59:29 +02:00
Only look for titles from normal pages (namespace = 0)
This commit is contained in:
@ -47,11 +47,13 @@
|
||||
|
||||
// Build an SQL query and fetch all page titles ordered
|
||||
// by length from shortest to longest.
|
||||
// Only titles from 'normal' pages (namespace uid = 0)
|
||||
// are returned.
|
||||
$dbr = wfGetDB( DB_SLAVE );
|
||||
$res = $dbr->select(
|
||||
'page',
|
||||
'page_title',
|
||||
'',
|
||||
'page_namespace = 0',
|
||||
__METHOD__,
|
||||
array( 'ORDER BY' => 'length(page_title)' ));
|
||||
|
||||
|
Reference in New Issue
Block a user