Changeset 1435


Ignore:
Timestamp:
Jul 6, 2006, 4:44:16 AM (18 years ago)
Author:
rvelices
Message:

bug 450: "upload an image" link in menu bar is missing

Location:
branches/branch-1_6
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/branch-1_6/include/menubar.inc.php

    • Property svn:eol-style set to native
    • Property svn:keywords set to Author Date Id Revision
    r1369 r1435  
    2929 * This file is included by the main page to show the menu bar
    3030 *
    31  */ 
     31 */
    3232$template->set_filenames(
    3333  array(
     
    301301    )
    302302  );
     303
     304if (isset($page['category']) and $page['cat_uploadable'] )
     305{ // upload a picture in the category
     306  $url = get_root_url().'upload.php?cat='.$page['category'];
     307  $template->assign_block_vars(
     308    'upload',
     309    array(
     310      'U_UPLOAD'=> $url
     311      )
     312    );
     313}
     314
    303315$template->assign_var_from_handle('MENUBAR', 'menubar');
    304316?>
  • branches/branch-1_6/index.php

    r1367 r1435  
    268268if (isset($page['category']))
    269269{
    270   // upload a picture in the category
    271   if ($page['cat_uploadable'])
    272   {
    273     $url = get_root_url().'upload.php?cat='.$page['category'];
    274     $template->assign_block_vars(
    275       'upload',
    276       array(
    277         'U_UPLOAD'=> $url
    278         )
    279       );
    280   }
    281 
    282270  // category comment
    283271  if (isset($page['comment']) and $page['comment'] != '')
Note: See TracChangeset for help on using the changeset viewer.