Changeset 1436 for trunk/include


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

merge -r1435 from branch-1_6 to trunk
bug 450: "upload an image" link in menu bar is missing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/menubar.inc.php

    • Property svn:eol-style set to native
    • Property svn:keywords set to Author Date Id Revision
    r1377 r1436  
    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?>
Note: See TracChangeset for help on using the changeset viewer.