Last modified: 2013-10-23 18:17:25 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 T38214, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 36214 - Special:Statistics Number of content pages ignores custom namespaces
Special:Statistics Number of content pages ignores custom namespaces
Status: NEW
Product: MediaWiki
Classification: Unclassified
Special pages (Other open bugs)
1.18.x
All All
: Normal normal with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
: testme
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-04-24 10:01 UTC by Subfader
Modified: 2013-10-23 18:17 UTC (History)
2 users (show)

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


Attachments

Description Subfader 2012-04-24 10:01:25 UTC
Special:Statistics Number of content pages ignores custom namespaces.

define("NS_CUSTOM", 100);
$wgExtraNamespaces[NS_CUSTOM] = "Custom";
$wgNamespacesWithSubpages[NS_CUSTOM] = true;

$wgContentNamespaces = array(
  NS_MAIN,
  NS_HELP,
  NS_CUSTOM
);

But on Special:Statistics only Main and Help NS are counted in the number of content pages.
Comment 1 Subfader 2012-04-25 10:09:33 UTC
Same for {{NUMBEROFARTICLES}}
Comment 2 Subfader 2012-04-25 10:12:00 UTC
It seems getContentNamespaces() in namespace.php doesn't work properly
Comment 3 db [inactive,noenotif] 2013-02-10 13:59:47 UTC
Looks fixed.

WikiPage::isCountable looks for isContent

Please test.

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


Navigation
Links