From 9bf3e6ff725dcec72a4f9e8ebb45efb8dd23ee1a Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Sun, 22 Feb 2009 14:35:29 +0000 Subject: [PATCH] Stylistic code tweaks --- includes/Linker.php | 8 ++------ skins/common/shared.css | 2 +- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/includes/Linker.php b/includes/Linker.php index 9b52671391..21fa15b27d 100644 --- a/includes/Linker.php +++ b/includes/Linker.php @@ -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)" ); } diff --git a/skins/common/shared.css b/skins/common/shared.css index a053de9f8f..b66ca0e04c 100644 --- a/skins/common/shared.css +++ b/skins/common/shared.css @@ -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 */ -- 2.20.1