From 28093b24d22c1203fa03dd62cda420d11c21a4fa Mon Sep 17 00:00:00 2001 From: rvelices Date: Thu, 6 Jul 2006 02:45:26 +0000 Subject: merge -r1435 from branch-1_6 to trunk bug 450: "upload an image" link in menu bar is missing git-svn-id: http://piwigo.org/svn/trunk@1436 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/menubar.inc.php | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/menubar.inc.php b/include/menubar.inc.php index 367d3a961..f17144e9b 100755 --- a/include/menubar.inc.php +++ b/include/menubar.inc.php @@ -28,7 +28,7 @@ /** * This file is included by the main page to show the menu bar * - */ + */ $template->set_filenames( array( 'menubar' => 'menubar.tpl', @@ -300,5 +300,17 @@ $template->assign_block_vars( 'REL'=> 'rel="nofollow"' ) ); + +if (isset($page['category']) and $page['cat_uploadable'] ) +{ // upload a picture in the category + $url = get_root_url().'upload.php?cat='.$page['category']; + $template->assign_block_vars( + 'upload', + array( + 'U_UPLOAD'=> $url + ) + ); +} + $template->assign_var_from_handle('MENUBAR', 'menubar'); ?> -- cgit v1.2.3