Last modified: 2009-07-12 12:38:28 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 T20533, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 18533 - siteinfo and action errors should include readonly message
siteinfo and action errors should include readonly message
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Roan Kattouw
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-04-20 15:16 UTC by Daniel Kinzler
Modified: 2009-07-12 12:38 UTC (History)
4 users (show)

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


Attachments

Description Daniel Kinzler 2009-04-20 15:16:51 UTC
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.
Comment 1 Roan Kattouw 2009-05-02 14:24:28 UTC
Fixed in r50130
Comment 2 Splarka 2009-07-07 23:27:27 UTC
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)" }
Comment 3 Bryan Tong Minh 2009-07-12 12:38:28 UTC
Done in r53132.

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


Navigation
Links