Index: trunk/phase3/includes/api/ApiQuerySiteinfo.php |
— | — | @@ -128,8 +128,10 @@ |
129 | 129 | $data['rtl'] = ''; |
130 | 130 | $data['fallback8bitEncoding'] = $wgLang->fallback8bitEncoding(); |
131 | 131 | |
132 | | - if( wfReadOnly() ) |
| 132 | + if( wfReadOnly() ) { |
133 | 133 | $data['readonly'] = ''; |
| 134 | + $data['readonlyreason'] = wfReadOnlyReason(); |
| 135 | + } |
134 | 136 | if( $GLOBALS['wgEnableWriteAPI'] ) |
135 | 137 | $data['writeapi'] = ''; |
136 | 138 | |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -127,6 +127,7 @@ |
128 | 128 | * (bug 16422) Don't display help for format=jsonfm unless specifically requested |
129 | 129 | * (bug 18617) Add xml:space="preserve" attribute to relevant tags in XML output |
130 | 130 | * Added PHP and database version to meta=siteinfo output |
| 131 | +* (bug 18533) Add readonly message to meta=siteinfo output |
131 | 132 | |
132 | 133 | === Languages updated in 1.16 === |
133 | 134 | |