Stylistic code tweaks
authorAaron Schulz <aaron@users.mediawiki.org>
Sun, 22 Feb 2009 14:35:29 +0000 (14:35 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Sun, 22 Feb 2009 14:35:29 +0000 (14:35 +0000)
includes/Linker.php
skins/common/shared.css

index 9b52671..21fa15b 100644 (file)
@@ -1783,9 +1783,7 @@ class Linker {
                # FIXME: Per standard MW behavior, a value of '-' means to suppress the
                # attribute, but this is broken for accesskey: that might be a useful
                # value.
-               if( $accesskey != ''
-               && $accesskey != '-'
-               && !wfEmptyMsg( "accesskey-$name", $accesskey ) ) {
+               if( $accesskey != '' && $accesskey != '-' && !wfEmptyMsg( "accesskey-$name", $accesskey ) ) {
                        wfProfileOut( __METHOD__ );
                        return $accesskey;
                }
@@ -1806,9 +1804,7 @@ class Linker {
        public function revDeleteLink( $query = array(), $restricted = false ) {
                $sp = SpecialPage::getTitleFor( 'Revisiondelete' );
                $text = wfMsgHtml( 'rev-delundel' );
-               $tag = 'span';
-               if( $restricted )
-                       $tag = 'strong';
+               $tag = $restricted ? 'strong' : 'span';
                $link = $this->link( $sp, $text, array(), $query, array( 'known', 'noclasses' ) );
                return Xml::tags( $tag, array( 'class' => 'mw-revdelundel-link' ), "($link)" );
        }
index a053de9..b66ca0e 100644 (file)
@@ -329,7 +329,7 @@ div.mw-warning-with-logexcerpt ul li {
 span.mw-revdelundel-link,
 strong.mw-revdelundel-link {
        font-family: monospace;
-       font-size: smaller
+       font-size: smaller;
 }
 
 /* feed links */