From: Aryeh Gregor Date: Mon, 21 Jul 2008 02:47:42 +0000 (+0000) Subject: * The accesskey to edit a page is now disabled when editing the page, to prevent... X-Git-Tag: 1.31.0-rc.0~46435 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/Special:BookSources/2753300917?a=commitdiff_plain;h=9b41a5dca63d5b6ad4b954323843a5feb0279a32;p=lhc%2Fweb%2Fwiklou.git * The accesskey to edit a page is now disabled when editing the page, to prevent conflicts with Safari shortcuts (Ctrl-E = go to end of line). * Fix watch checkbox for real in Firefox 3. It still wasn't working right, due to the duplicate use of the W accesskey for the watch/unwatch tab. This is now disabled on edit. --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 740d874d38..54ffea4a69 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -445,6 +445,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 12441) ./maintenance/generateSitemap.php fix -fspath requiring a trailing slash. * (bug 12568) configuration script now produce valid XHTML. +* The accesskey to edit a page is now disabled when editing the page, to pre- + vent conflicts with Safari shortcuts. === API changes in 1.13 === diff --git a/skins/Modern.php b/skins/Modern.php index e75e4ae829..3f5ce5e8b5 100644 --- a/skins/Modern.php +++ b/skins/Modern.php @@ -110,12 +110,27 @@ class ModernTemplate extends QuickTemplate {
msg('views') ?>
diff --git a/skins/MonoBook.php b/skins/MonoBook.php index bfd94d5cc0..c17fc71a40 100644 --- a/skins/MonoBook.php +++ b/skins/MonoBook.php @@ -46,8 +46,9 @@ class MonoBookTemplate extends QuickTemplate { * @access private */ function execute() { - global $wgUser; + global $wgUser, $wgRequest; $this->skin = $skin = $wgUser->getSkin(); + $action = $wgRequest->getText( 'action' ); // Suppress warnings to prevent notices about missing indexes in $this->data wfSuppressWarnings(); @@ -123,12 +124,27 @@ class MonoBookTemplate extends QuickTemplate {
msg('views') ?>