Skip to content

Commit

Permalink
merge -r1435 from branch-1_6 to trunk
Browse files Browse the repository at this point in the history
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
  • Loading branch information
rvelices committed Jul 6, 2006
1 parent 73d9794 commit 28093b2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
14 changes: 13 additions & 1 deletion include/menubar.inc.php
Expand Up @@ -28,7 +28,7 @@
/**
* This file is included by the main page to show the menu bar
*
*/
*/
$template->set_filenames(
array(
'menubar' => 'menubar.tpl',
Expand Down Expand Up @@ -300,5 +300,17 @@
'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');
?>
12 changes: 0 additions & 12 deletions index.php
Expand Up @@ -267,18 +267,6 @@

if (isset($page['category']))
{
// upload a picture in the category
if ($page['cat_uploadable'])
{
$url = get_root_url().'upload.php?cat='.$page['category'];
$template->assign_block_vars(
'upload',
array(
'U_UPLOAD'=> $url
)
);
}

// category comment
if (isset($page['comment']) and $page['comment'] != '')
{
Expand Down

0 comments on commit 28093b2

Please sign in to comment.