Fix modern to use the tooltiponly attribute.
authorDaniel Friesen <dantman@users.mediawiki.org>
Sat, 1 Jan 2011 16:44:58 +0000 (16:44 +0000)
committerDaniel Friesen <dantman@users.mediawiki.org>
Sat, 1 Jan 2011 16:44:58 +0000 (16:44 +0000)
skins/Modern.php

index d54bc41..1871adf 100644 (file)
@@ -72,14 +72,7 @@ class ModernTemplate extends MonoBookTemplate {
                                                echo ' class="'.htmlspecialchars($tab['class']).'"';
                                        }
                                        echo'><a href="'.htmlspecialchars($tab['href']).'"';
-                                       # We don't want to give the watch tab an accesskey if the
-                                       # page is being edited, because that conflicts with the
-                                       # accesskey on the watch checkbox.  We also don't want to
-                                       # give the edit tab an accesskey, because that's fairly su-
-                                       # perfluous and conflicts with an accesskey (Ctrl-E) often
-                                       # used for editing in Safari.
-                                       if( in_array( $action, array( 'edit', 'submit' ) )
-                                       && in_array( $key, array( 'edit', 'watch', 'unwatch' ))) {
+                                       if( isset($tab["tooltiponly"]) && $tab["tooltiponly"] ) {
                                                echo $skin->tooltip( "ca-$key" );
                                        } else {
                                                echo $skin->tooltipAndAccesskey( "ca-$key" );