From: Magnus Manske Date: Mon, 2 Jan 2006 20:58:32 +0000 (+0000) Subject: Integrating "User files" (via Special:Newimages) into the sidebar of the user page X-Git-Tag: 1.6.0~799 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/fiche.php?a=commitdiff_plain;h=c80c134237270aac573dc2664d1a6385d41a2a21;p=lhc%2Fweb%2Fwiklou.git Integrating "User files" (via Special:Newimages) into the sidebar of the user page --- diff --git a/includes/SkinTemplate.php b/includes/SkinTemplate.php index fbb95fbb2b..7878a1b88d 100644 --- a/includes/SkinTemplate.php +++ b/includes/SkinTemplate.php @@ -841,10 +841,13 @@ class SkinTemplate extends Skin { $ip = false; } - if($id || $ip) { # both anons and non-anons have contri list + if($id || $ip) { # both anons and non-anons have contribution list $nav_urls['contributions'] = array( 'href' => $this->makeSpecialUrl('Contributions/' . $this->mTitle->getText() ) ); + $nav_urls['userfiles'] = array( + 'href' => $this->makeSpecialUrl('Newimages/' . $this->mTitle->getText() ) + ); if ( $wgUser->isAllowed( 'protect' ) ) $nav_urls['blockip'] = array( 'href' => $this->makeSpecialUrl( 'Blockip/' . $this->mTitle->getText() ) diff --git a/languages/Language.php b/languages/Language.php index d51d6de249..e056fc4889 100644 --- a/languages/Language.php +++ b/languages/Language.php @@ -1418,6 +1418,7 @@ See [[Special:Log/delete]] for a record of recent deletions and restorations.", # Contributions # 'contributions' => 'User contributions', +'userfiles' => 'User files', 'mycontris' => 'My contributions', 'contribsub' => "For $1", 'nocontribs' => 'No changes were found matching these criteria.', diff --git a/skins/MonoBook.php b/skins/MonoBook.php index 61e4e77a6c..99bb6e8c0f 100644 --- a/skins/MonoBook.php +++ b/skins/MonoBook.php @@ -193,7 +193,7 @@ class MonoBookTemplate extends QuickTemplate { data['nav_urls'][$special]) { ?>