Page MenuHomePhabricator

ApiPageSet needs defaultNamespace for actions
Closed, ResolvedPublic


For some actions that deal mostly with one namespace (file manipulation, etc), it would be good to add a defaultNamespace constructor parameter to be used with Title::newFromText()

Version: 1.21.x
Severity: enhancement



Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 1:41 AM
bzimport added a project: MediaWiki-API.
bzimport set Reference to bz45201.
bzimport added a subscriber: Unknown Object (MLST).

How would this be used? Just by non-query actions that might use ApiPageSet and want to allow "titles=Foo.jpg|Bar.jpg" instead of "titles=File:Foo.jpg|File:Bar.jpg"?

Correct. Would be good for the image rotation action, or any other alike. Should be trivial to do and non-breaking. I made it as a bug just so i don't forget.

Already fixed with merged gerrit 52223