marked by unhealthy obsession with edit counts).
* Added a file cache to the parser to improve page rendering time on pages with
several uses of the same image.
+* (bug 1250) Users can still use "show preview" and "show changes" even if the
+ wiki is set to read-only mode.
=== Bug fixes in 1.14 ===
return;
}
- if ( wfReadOnly() ) {
- if ( $this->save ){
+ if ( wfReadOnly() && $this->save ) {
// Force preview
$this->save = false;
$this->preview = true;
- } elseif ( $this->preview || $this->diff ) {
- // A warning will be displayed instead
- } else {
- $this->readOnlyPage( $this->getContent() );
- wfProfileOut( __METHOD__ );
- return;
- }
}
$wgOut->addScriptFile( 'edit.js' );