From 9372716b150e7896f458d5b36508c2ee6b4bffca Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Sun, 11 Sep 2005 05:00:25 +0000 Subject: [PATCH] * Fix edit on double-click for move-protected pages in Classic skin --- RELEASE-NOTES | 1 + includes/Skin.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index b5b841bf4d..a7f514ff94 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -92,6 +92,7 @@ fully support the editing toolbar, but was found to be too confusing. * Cap arbitrary SVG renders to given image size or $wgSVGMaxSize pixels wide * (bug 3127) Render large SVGs at image page size correctly * Fix regressions in ChangesList traditional layout +* Fix edit on double-click for move-protected pages in Classic skin === Caveats === diff --git a/includes/Skin.php b/includes/Skin.php index 607ffb6c13..27a8d22d6a 100644 --- a/includes/Skin.php +++ b/includes/Skin.php @@ -311,7 +311,7 @@ END; } else $a = array( 'bgcolor' => '#FFFFFF' ); if($wgOut->isArticle() && $wgUser->getOption('editondblclick') && - (!$wgTitle->isProtected() || $wgUser->isAllowed('protect')) ) { + $wgTitle->userCanEdit() ) { $t = wfMsg( 'editthispage' ); $oid = $red = ''; if ( !empty($redirect) && $redirect == 'no' ) { -- 2.20.1