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 set Reference to bz18533.

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.