Index: trunk/phase3/includes/Skin.php |
— | — | @@ -1992,19 +1992,17 @@ |
1993 | 1993 | global $wgUploadNavigationUrl; |
1994 | 1994 | |
1995 | 1995 | if( $wgUploadNavigationUrl ) { |
1996 | | - $title = Title::newFromText( $wgUploadNavigationUrl ); |
| 1996 | + # Using an empty class attribute to avoid automatic setting of "external" class |
| 1997 | + return $this->makeExternalLink( $wgUploadNavigationUrl, wfMsgHtml( 'upload' ), false, null, array( 'class' => '') ); |
| 1998 | + } else { |
| 1999 | + return $this->link( |
| 2000 | + SpecialPage::getTitleFor('Upload'), |
| 2001 | + wfMsgHtml( 'upload' ), |
| 2002 | + array(), |
| 2003 | + array(), |
| 2004 | + array( 'known', 'noclasses' ) |
| 2005 | + ); |
1997 | 2006 | } |
1998 | | - if( !isset( $title ) ) { |
1999 | | - $title = SpecialPage::getTitleFor('Upload'); |
2000 | | - } |
2001 | | - |
2002 | | - return $this->link( |
2003 | | - $title, |
2004 | | - wfMsgHtml( 'upload' ), |
2005 | | - array(), |
2006 | | - array(), |
2007 | | - array( 'known', 'noclasses' ) |
2008 | | - ); |
2009 | 2007 | } |
2010 | 2008 | |
2011 | 2009 | /* these are used extensively in SkinTemplate, but also some other places */ |