Last modified: 2010-05-15 16:03:33 UTC
Patch to add if the database is locked or not to the general prop of siteinfo
Created attachment 5011 [details] Patch against r36521 Patch (some reason didn't attach on submit)
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'.
Ah, I just looked at what was in Special(Un)lockdb they used the file tests instead of the function.