r86153 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r86152‎ | r86153 | r86154 >
Date:23:10, 15 April 2011
Author:churchofemacs
Status:deferred
Tags:
Comment:
Fixing Bug 28567. Abort drafts for special pages (used on extensions like SemanticForms)
Modified paths:
  • /trunk/extensions/Drafts/Drafts.hooks.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Drafts/Drafts.hooks.php
@@ -84,7 +84,8 @@
8585
8686 // Save draft on non-save submission
8787 if ( $wgRequest->getVal( 'action' ) == 'submit' &&
88 - $wgUser->editToken() == $wgRequest->getText( 'wpEditToken' ) )
 88+ $wgUser->editToken() == $wgRequest->getText( 'wpEditToken' ) &&
 89+ is_null( $wgRequest->getText( 'wpDraftTitle' ) ) )
8990 {
9091 // If the draft wasn't specified in the url, try using a
9192 // form-submitted one

Status & tagging log