Last modified: 2011-04-14 15:14:10 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T23773, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 21773 - Correct number of categories?
Correct number of categories?
Status: NEW
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
unspecified
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-12-06 14:17 UTC by Subfader
Modified: 2011-04-14 15:14 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Subfader 2009-12-06 14:17:04 UTC
Atm there is no way to return the correct number of categories, because {{PAGESINNS:14}} counts all pages like manually created redirects while {{NUMBEROFARTICLES}} excludes those.

The easiest way might be a global to define if redirects should be counted (default) or not for {{PAGESINNS}}.
Comment 1 Subfader 2009-12-14 15:26:19 UTC
Just for those who want to manually fix it: includes/SiteStats.php > static function pagesInNs( $ns )
array( 'page_namespace' => $ns ) to
array( 'page_namespace' => $ns, 'page_is_redirect' => '0' )


Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links