From c80c134237270aac573dc2664d1a6385d41a2a21 Mon Sep 17 00:00:00 2001 From: Magnus Manske Date: Mon, 2 Jan 2006 20:58:32 +0000 Subject: [PATCH] Integrating "User files" (via Special:Newimages) into the sidebar of the user page --- includes/SkinTemplate.php | 5 ++++- languages/Language.php | 1 + skins/MonoBook.php | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) 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]) { ?>