Ignore:
Timestamp:
06/30/10 14:22:52 (10 years ago)
Author:
vdigital
Message:

Version 2.1.b
Fix : U_ADMIN issue

Location:
extensions/spread_menus
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/spread_menus/main.inc.php

    r6465 r6634  
    22/* 
    33Plugin Name: Spread menus 
    4 Version: 2.1.a 
     4Version: 2.1.b 
    55Description: Provide menus on any public pages 
    66Plugin URI: http://piwigo.org/ext/extension_view.php?eid=400 
     
    1212define('SPREADM_DIR' , basename(dirname(__FILE__))); 
    1313define('SPREADM_PATH' , PHPWG_PLUGINS_PATH . SPREADM_DIR . '/'); 
    14 define('SPREADM_VER' , '2.1.a'); 
     14define('SPREADM_VER' , '2.1.b'); 
    1515include_once( SPREADM_PATH . 'spread_menus_on_public_pages.php'); 
    1616?> 
  • extensions/spread_menus/spread_menus_on_public_pages.php

    r6470 r6634  
    3838          $template->assign( array( 'SPREADM' => $conf['Spread menus'] ) ); 
    3939          $template->parse('spread_menus_on_public_pages'); 
     40    $template->assign( 
     41        'U_ADMIN', get_root_url().'admin.php?page=picture_modify' 
     42      .'&cat_id='.(isset($page['category']) ? $page['category']['id'] : '') 
     43      .( isset($page['image_id']) ? '&image_id='.$page['image_id'] : '') 
     44      ); 
     45 
    4046        } 
    4147} 
Note: See TracChangeset for help on using the changeset viewer.