mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-06 09:52:29 +02:00
bug 450: "upload an image" link in menu bar is missing
git-svn-id: http://piwigo.org/svn/branches/branch-1_6@1435 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
+13
-1
@@ -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');
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user