Page MenuHomePhabricator

Moving page to another content namespace decrease article count
Closed, ResolvedPublic

Description

Author: stanley

Description:
Testcase:
-Namespace "Resep" (ns:100) is a custom content namespace
($wgContentNamespaces[]=100 set)
-Create new page on namespace 100. (Numberofarticles+1 = ok)
-Create new page "Foo" on main namespace. (Numberofarticles+1 = ok)
-Move "Foo" to "Resep:Foo". (Numberofarticles-1 = not ok)


Version: 1.7.x
Severity: normal
URL: http://id.wikibooks.org
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=41850

Details

Reference
bz7292

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:26 PM
bzimport set Reference to bz7292.

stanley wrote:

Please recount the numberofarticles on id.wikibooks.org when you have fixed the
bug. Thanks

rotemliss wrote:

Patch

This patch for trunk may work, but I didn't test it, therefore I won't yet
commit it (the statistics in my test wiki are broken, and I don't want to fix
them right now). You can test it if you like.

Attached:

stanley wrote:

I test this patch on my wiki and it works fine.

rotemliss wrote:

*** Bug 9101 has been marked as a duplicate of this bug. ***