Index: trunk/extensions/ForcePreview/ForcePreview.php |
— | — | @@ -11,7 +11,7 @@ |
12 | 12 | $wgExtensionCredits['other'][] = array( |
13 | 13 | 'path' => __FILE__, |
14 | 14 | 'name' => 'Force Preview', |
15 | | - 'version' => '1.1', |
| 15 | + 'version' => '1.2', |
16 | 16 | 'author' => 'Ryan Schmidt', |
17 | 17 | #'description' => 'Force preview for unprivelaged users', |
18 | 18 | 'descriptionmsg' => 'forcepreview-desc', |
— | — | @@ -29,7 +29,7 @@ |
30 | 30 | |
31 | 31 | function efForcePreview( &$editpage, &$buttons ) { |
32 | 32 | global $wgUser; |
33 | | - if( !$wgUser->isAllowed( 'forcepreviewexempt' ) && !$editpage->preview ) { |
| 33 | + if( !$wgUser->isAllowed( 'forcepreviewexempt' ) && !$editpage->preview && empty($editpage->save) ) { |
34 | 34 | wfLoadExtensionMessages( 'ForcePreview' ); |
35 | 35 | $buttons['save'] = str_replace( '/>', 'disabled="disabled" />', $buttons['save'] ); |
36 | 36 | $buttons['save'] = preg_replace( '/value="' . wfMsg('savearticle') . '"/i', 'value="' . wfMsg('forcepreview') . '"', $buttons['save'] ); |