Changeset 8235


Ignore:
Timestamp:
Dec 22, 2010, 10:01:42 PM (10 years ago)
Author:
ddtddt
Message:

[extensions] - spread_menus - admin link no guest

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/spread_menus/spread_menus_on_public_pages.php

    r8192 r8235  
    3838          $template->assign( array( 'SPREADM' => $conf['Spread menus'] ) );
    3939          $template->parse('spread_menus_on_public_pages');
     40         
     41          if (is_admin())
     42                {
     43          $template->assign(
     44        'U_ADMIN', get_root_url().'admin.php?page=picture_modify'
     45      .'&cat_id='.(isset($page['category']) ? $page['category']['id'] : '')
     46      .( isset($page['image_id']) ? '&image_id='.$page['image_id'] : '')
     47      );
     48                }
     49         
    4050        }
    4151}
Note: See TracChangeset for help on using the changeset viewer.