Page MenuHomePhabricator

ApiPageSet needs defaultNamespace for actions
Closed, ResolvedPublic

Description

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

Details

Reference
bz45201

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 1:41 AM
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.
https://gerrit.wikimedia.org/r/#/c/44005/5/includes/api/ApiImageRotate.php

Already fixed with merged gerrit 52223