* (bug 27893) Edit-on-doubleclick now applies only on view and purge actions;
authorBrion Vibber <brion@users.mediawiki.org>
Thu, 31 Mar 2011 23:40:51 +0000 (23:40 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Thu, 31 Mar 2011 23:40:51 +0000 (23:40 +0000)
  no longer triggers unexpectedly on delete, history etc.

RELEASE-NOTES
includes/OutputPage.php

index bb39275..a1036fb 100644 (file)
@@ -214,6 +214,8 @@ PHP if you have not done so prior to upgrading MediaWiki.
 * (bug 15641) Fixed positioning of permissions checks in Special:Import which
   allowed users without the 'import' permission to import pages if they directly
   submitted the form.
+* (bug 27893) Edit-on-doubleclick now applies only on view and purge actions;
+  no longer triggers unexpectedly on delete, history etc.
 
 === API changes in 1.18 ===
 * (bug 26339) Throw warning when truncating an overlarge API result
index 2fd705d..e68dca5 100644 (file)
@@ -2347,7 +2347,7 @@ class OutputPage {
 
                if (
                        $this->getTitle()->getNamespace() != NS_SPECIAL &&
-                       !in_array( $action, array( 'edit', 'submit' ) ) &&
+                       in_array( $action, array( 'view', 'purge' ) ) &&
                        $wgUser->getOption( 'editondblclick' )
                )
                {