Cleaned up and optimized wfBaseConvert();
[lhc/web/wiklou.git] / includes / SkinTemplate.php
index a24ece5..da4af61 100644 (file)
@@ -643,7 +643,6 @@ class SkinTemplate extends Skin {
                        $is_signup = $request->getText( 'type' ) == 'signup';
 
                        # anonlogin & login are the same
-                       global $wgSecureLogin;
                        $proto = $wgSecureLogin ? PROTO_HTTPS : null;
 
                        $login_id = $this->showIPinHeader() ? 'anonlogin' : 'login';
@@ -1208,6 +1207,7 @@ class SkinTemplate extends Skin {
                        $rootUser = $user->getName();
 
                        $nav_urls['contributions'] = array(
+                               'text' => $this->msg( 'contributions', $rootUser )->text(),
                                'href' => self::makeSpecialUrlSubpage( 'Contributions', $rootUser )
                        );
 
@@ -1777,13 +1777,6 @@ abstract class BaseTemplate extends QuickTemplate {
                        $attrs['class'] .= ' active';
                        $attrs['class'] = trim( $attrs['class'] );
                }
-
-               // A special case for the talk link in personal tools.
-               // See bug 41672 and 42337.
-               if ( $key === 'mytalk' ) {
-                       $html = $this->getMsg( 'parentheses' )->rawParams( $html )->escaped();
-               }
-
                return Html::rawElement( isset( $options['tag'] ) ? $options['tag'] : 'li', $attrs, $html );
        }