diff --git a/HISTORY b/HISTORY index eb00bdf..7790740 100644 --- a/HISTORY +++ b/HISTORY @@ -1,5 +1,8 @@ Extension:LinkTitles +0.0.3: 2012-05-20 +* Only look for page titles from 'normal' pages (namespace = 0). + 0.0.2: 2012-05-20 * Prevent generation of self-references. * Escape slashes in page titles before using them in a regexp. diff --git a/LinkTitles.body.php b/LinkTitles.body.php index 43fdbf3..b62512b 100755 --- a/LinkTitles.body.php +++ b/LinkTitles.body.php @@ -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)' )); diff --git a/LinkTitles.php b/LinkTitles.php index ec0c98c..5fa5ca8 100755 --- a/LinkTitles.php +++ b/LinkTitles.php @@ -36,7 +36,7 @@ 'name' => 'LinkTitles', 'author' => '[http://www.mediawiki.org/wiki/User:Bovender Daniel Kraus]', 'url' => 'http://www.mediawiki.org/wiki/Extension:LinkTitles', - 'version' => '0.0.2', + 'version' => '0.0.3', 'descriptionmsg' => 'linktitles-desc' );