Regression caused by the new permissions error reporting system.
For read-only case, the read-only text didn't get passed back with the message from Title::getUserPermissionsErrors().
The text is either originally set in $wgReadOnly or gets loaded into it from $wgReadOnlyFile during wfReadOnly(), so pulling that it now gets passed back as expected.
Other functions using $wgOut->readOnlyPage() would have still got the original, still working, behavior.
supressed, breaking paging - now strikes out "fixed" results
* (bug 8393) <sup> and <sub> need to be preserved (without attributes) for
entries in the table of contents
+* (bug 11114) Fix regression in read-only mode error display during editing
+
== API changes since 1.10 ==
$this->summary = '';
$this->edittime = '';
$this->starttime = wfTimestampNow();
+ $this->edit = false;
$this->preview = false;
$this->save = false;
- $this->diff = false;
+ $this->diff = false;
$this->minoredit = false;
$this->watchthis = false;
$this->recreate = false;
global $wgLang;
if ( wfReadOnly() && $action != 'read' ) {
- $errors[] = array( 'readonlytext' );
+ global $wgReadOnly;
+ $errors[] = array( 'readonlytext', $wgReadOnly );
}
global $wgEmailConfirmToEdit, $wgUser;