Index: trunk/phase3/includes/EditPage.php |
— | — | @@ -375,18 +375,10 @@ |
376 | 376 | return; |
377 | 377 | } |
378 | 378 | |
379 | | - if ( wfReadOnly() ) { |
380 | | - if ( $this->save ){ |
| 379 | + if ( wfReadOnly() && $this->save ) { |
381 | 380 | // Force preview |
382 | 381 | $this->save = false; |
383 | 382 | $this->preview = true; |
384 | | - } elseif ( $this->preview || $this->diff ) { |
385 | | - // A warning will be displayed instead |
386 | | - } else { |
387 | | - $this->readOnlyPage( $this->getContent() ); |
388 | | - wfProfileOut( __METHOD__ ); |
389 | | - return; |
390 | | - } |
391 | 383 | } |
392 | 384 | |
393 | 385 | $wgOut->addScriptFile( 'edit.js' ); |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -161,6 +161,8 @@ |
162 | 162 | marked by unhealthy obsession with edit counts). |
163 | 163 | * Added a file cache to the parser to improve page rendering time on pages with |
164 | 164 | several uses of the same image. |
| 165 | +* (bug 1250) Users can still use "show preview" and "show changes" even if the |
| 166 | + wiki is set to read-only mode. |
165 | 167 | |
166 | 168 | === Bug fixes in 1.14 === |
167 | 169 | |