From f0eacb35549f10a69f4d5fe67c3ef61b3392d8a3 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Thu, 31 Mar 2011 23:40:51 +0000 Subject: [PATCH] * (bug 27893) Edit-on-doubleclick now applies only on view and purge actions; no longer triggers unexpectedly on delete, history etc. --- RELEASE-NOTES | 2 ++ includes/OutputPage.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index bb39275fdb..a1036fb324 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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 diff --git a/includes/OutputPage.php b/includes/OutputPage.php index 2fd705d001..e68dca5de7 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -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' ) ) { -- 2.20.1