Last modified: 2010-05-15 16:03:33 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 14605 - Add Database status to general siteinfo
Add Database status to general siteinfo
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
All All
: Normal enhancement (vote)
: ---
Assigned To: Roan Kattouw
: patch
Depends on:
  Show dependency treegraph
Reported: 2008-06-21 07:47 UTC by OverlordQ
Modified: 2010-05-15 16:03 UTC (History)
2 users (show)

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

Patch against r36521 (870 bytes, patch)
2008-06-21 07:49 UTC, OverlordQ

Description OverlordQ 2008-06-21 07:47:52 UTC
Patch to add if the database is locked or not to the general prop of siteinfo
Comment 1 OverlordQ 2008-06-21 07:49:32 UTC
Created attachment 5011 [details]
Patch against r36521

Patch (some reason didn't attach on submit)
Comment 2 Roan Kattouw 2008-06-21 15:17:33 UTC
Fixed in r36526. I didn't use your patch though: there's a function to check for read-onlyness called wfReadOnly() (you can also set the wiki to read-only using $wgReadOnly rather than $wgReadOnlyFile) and called the output field 'readonly' rather than 'dblock'.
Comment 3 OverlordQ 2008-06-21 19:57:13 UTC
Ah, I just looked at what was in Special(Un)lockdb they used the file tests instead of the function.

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