Last modified: 2013-04-22 16: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 T48264, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 46264 - Subpages disabled for no reason on ptwikibooks' template namespace
Subpages disabled for no reason on ptwikibooks' template namespace
Status: RESOLVED FIXED
Product: Wikimedia
Classification: Unclassified
Site requests (Other open bugs)
wmf-deployment
All All
: High major (vote)
: ---
Assigned To: Nobody - You can work on this!
: shell
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-03-18 12:22 UTC by Helder
Modified: 2013-04-22 16:14 UTC (History)
6 users (show)

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


Attachments

Description Helder 2013-03-18 12:22:59 UTC
Subpages were enabled on template namespace of ptwikibooks on bug 15076, but this got disabled recently for unknown reasons, breaking some of our templates.

Test case: "{{SUBPAGENAME:Template:A/B/C}}" should return "C" but returns "A/B/C", as you can see at
https://pt.wikibooks.org/w/index.php?title=Especial:Expandir_predefini%C3%A7%C3%B5es&input=%7B%7BSUBPAGENAME%3ATemplate%3AA%2FB%2FC%7D%7D&contexttitle=&removecomments=true
Comment 1 Helder 2013-03-18 12:24:05 UTC
Reedy, any chance of this being related to gerrit change I685d49a64415f28bff6d9da4a9094eab793f10be
?
Comment 2 Sam Reed (reedy) 2013-03-19 03:42:06 UTC
> var_dump( $wgNamespacesWithSubpages );
array(35) {
  [0]=>
  int(1)
  [6]=>
  int(0)
  [8]=>
  int(0)
  [14]=>
  int(1)
  [15]=>
  int(1)
  [16]=>
  int(0)
  [17]=>
  int(0)
  [10]=>
  int(0)
  [1]=>
  bool(true)
  [2]=>
  bool(true)
  [3]=>
  bool(true)
  [4]=>
  bool(true)
  [5]=>
  bool(true)
  [7]=>
  bool(true)
  [18]=>
  bool(true)
  [9]=>
  bool(true)
  [19]=>
  bool(true)
  [11]=>
  bool(true)
  [12]=>
  bool(true)
  [13]=>
  bool(true)
  [20]=>
  bool(true)
  [100]=>
  bool(true)
  [101]=>
  bool(true)
  [102]=>
  bool(true)
  [103]=>
  bool(true)
  [104]=>
  bool(true)
  [105]=>
  bool(true)
  [106]=>
  bool(true)
  [107]=>
  bool(true)
  [108]=>
  bool(true)
  [109]=>
  bool(true)
  [110]=>
  bool(true)
  [111]=>
  bool(true)
  [828]=>
  bool(true)
  [829]=>
  bool(true)
}


TBH, I'd be tempted to just remove 10 => 1 from:

'+wikibooks' => array( 0 => 1, 4 => 0, 6 => 0, 8 => 0, 10 => 0 ),
Comment 3 Sam Reed (reedy) 2013-03-19 03:51:58 UTC
https://gerrit.wikimedia.org/r/#/c/54630/
Comment 4 Helder 2013-03-29 14:57:23 UTC
Status = Merged and the example above seems to be working now.

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


Navigation
Links