From: Brion Vibber Date: Sun, 11 Sep 2005 05:00:25 +0000 (+0000) Subject: * Fix edit on double-click for move-protected pages in Classic skin X-Git-Tag: 1.6.0~1680 X-Git-Url: https://git.cyclocoop.org/admin/?a=commitdiff_plain;h=9372716b150e7896f458d5b36508c2ee6b4bffca;p=lhc%2Fweb%2Fwiklou.git * Fix edit on double-click for move-protected pages in Classic skin --- 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' ) {