Page MenuHomePhabricator

Bug3421.patch

Authored By
bzimport
Nov 21 2014, 8:47 PM
Size
922 B
Referenced Files
None
Subscribers
None

Bug3421.patch

Index: includes/EditPage.php
===================================================================
RCS file: /cvsroot/wikipedia/phase3/includes/EditPage.php,v
retrieving revision 1.198
diff -u -r1.198 EditPage.php
--- includes/EditPage.php 30 Jul 2005 08:03:04 -0000 1.198
+++ includes/EditPage.php 11 Sep 2005 04:27:29 -0000
@@ -140,7 +140,7 @@
$this->importFormData( $wgRequest );
- if( $this->live ) {
+ if( $this->live && !$this->mTitle->isCssJsSubpage() ) {
$this->livePreview();
return;
}
@@ -674,7 +674,7 @@
* Set up the button for it; if not supported by the browser
* it will fall through to the normal form submission method.
*/
- if( $wgLivePreview ) {
+ if( $wgLivePreview && !$isCssJsSubpage ) {
global $wgJsMimeType;
$wgOut->addHTML( '<script type="'.$wgJsMimeType.'" src="' .
htmlspecialchars( $wgStylePath . '/common/preview.js' ) .

File Metadata

Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1834
Default Alt Text
Bug3421.patch (922 B)

Event Timeline