Page MenuHomePhabricator

siteinfo and action errors should include readonly message
Closed, ResolvedPublic

Description

If a wiki is set to read only mode, this information should be available via the api. I suggest to include the read-only message as specified via $wgReadOnly or $wgReadOnlyFile in the information returned by a meta=siteinfo query.


Version: unspecified
Severity: enhancement

Details

Reference
bz18533

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:34 PM
bzimport added a project: MediaWiki-API.
bzimport set Reference to bz18533.
daniel created this task.Apr 20 2009, 3:16 PM

Fixed in r50130

herd wrote:

Can this also be applied to errors encountered when performing an action? For example, on action=edit:

{ "code": "readonly", "info": "The wiki is currently in read-only mode" }

to something exposing wfReadOnlyReason(), eg:

{ "code": "readonly", "info": "The wiki is currently in read-only mode (reason: blah blah blah)" }

Bryan.TongMinh wrote:

Done in r53132.