From: Ori.livneh Date: Mon, 26 Nov 2012 21:49:45 +0000 (+0000) Subject: Merge "(bug 42337) Simplify "my talk" link logic in personal tools" X-Git-Tag: 1.31.0-rc.0~21512 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=6236aebcf08ded84d039605f3d1e4296cc7be74f;hp=720a6824257ff1af1559efebee98a1b0debd98d9;p=lhc%2Fweb%2Fwiklou.git Merge "(bug 42337) Simplify "my talk" link logic in personal tools" --- diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index 0901d8c609..2073f168b7 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -2776,13 +2776,6 @@ $wgFooterIcons = array( */ $wgUseCombinedLoginLink = false; -/** - * Appearance of user page and talk page labels in personal tools. - * - true = combine links into a single label - * - false = keep links in separate labels - */ -$wgVectorCombineUserTalk = false; - /** * Search form look for Vector skin only. * - true = use an icon search button diff --git a/languages/messages/MessagesEn.php b/languages/messages/MessagesEn.php index e0042c88a6..7bd1add853 100644 --- a/languages/messages/MessagesEn.php +++ b/languages/messages/MessagesEn.php @@ -775,7 +775,6 @@ XHTML id names. 'moredotdotdot' => 'More...', 'mypage' => 'Page', 'mytalk' => 'Talk', -'mytalk-parenthetical' => 'talk', 'anontalk' => 'Talk for this IP address', 'navigation' => 'Navigation', 'and' => ' and', diff --git a/languages/messages/MessagesQqq.php b/languages/messages/MessagesQqq.php index 49f4333aa3..f032064e0b 100644 --- a/languages/messages/MessagesQqq.php +++ b/languages/messages/MessagesQqq.php @@ -5051,7 +5051,3 @@ $4 is the gender of the target user.', * $1 is an unknown warning.', 'api-error-uploaddisabled' => 'API error message that can be used for client side localisation of API errors.', 'api-error-verification-error' => 'The word "extension" refers to the part behind the last dot in a file name, that by convention gives a hint about the kind of data format which a files contents are in.', - -# Unknown messages -'mytalk-parenthetical' => 'When user page and talk combined into single label, link title for talk label', -); diff --git a/skins/Vector.php b/skins/Vector.php index 92eb3ad02f..8d685bdf6c 100644 --- a/skins/Vector.php +++ b/skins/Vector.php @@ -367,7 +367,7 @@ class VectorTemplate extends BaseTemplate { * @param $elements array */ protected function renderNavigation( $elements ) { - global $wgVectorUseSimpleSearch, $wgVectorCombineUserTalk; + global $wgVectorUseSimpleSearch; // If only one element was given, wrap it in an array, allowing more // flexible arguments @@ -452,20 +452,6 @@ class VectorTemplate extends BaseTemplate { html( 'userlangattributes' ) ?>> getPersonalTools(); - if ( $wgVectorCombineUserTalk && isset( $personalTools['userpage'] ) ) { -?> -
  • -makeListItem( 'userpage', $personalTools['userpage'], array( 'tag' => 'span' ) ); -?> getMsg( 'mytalk-parenthetical' )->text(); - $talkItem = $this->makeListItem( 'mytalk', $personalTools['mytalk'], array( 'tag' => 'span' ) ); - echo $this->getMsg( 'parentheses' )->rawParams( $talkItem )->escaped(); - unset( $personalTools['userpage'], $personalTools['mytalk'] ); -?> -
  • - $item ) { echo $this->makeListItem( $key, $item ); }