* Fix edit on double-click for move-protected pages in Classic skin
authorBrion Vibber <brion@users.mediawiki.org>
Sun, 11 Sep 2005 05:00:25 +0000 (05:00 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Sun, 11 Sep 2005 05:00:25 +0000 (05:00 +0000)
RELEASE-NOTES
includes/Skin.php

index b5b841b..a7f514f 100644 (file)
@@ -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 ===
index 607ffb6..27a8d22 100644 (file)
@@ -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' ) {