Changeset 12502


Ignore:
Timestamp:
Oct 21, 2011, 10:21:20 PM (9 years ago)
Author:
plg
Message:

bug fixed: the multilingual page names (displayed in the menu) were not handled properly outside index.php and picture.php, but Piwigo 2.3 displays the menu on all pages now.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/AdditionalPages/trunk/main.inc.php

    r11574 r12502  
    4141}
    4242
    43 // Section init
    44 function section_init_additional_page()
     43// common
     44function ap_common_init()
    4545{
    46   global $tokens, $conf, $page;
    47 
    4846  if (defined('EXTENDED_DESC_PATH'))
    4947  {
     
    5149    add_event_handler('AP_render_title', 'get_user_language_desc');
    5250  }
     51}
     52
     53// Section init
     54function section_init_additional_page()
     55{
     56  global $tokens, $conf, $page;
    5357
    5458  $page['ap_homepage'] = (count($tokens) == 1 and empty($tokens[0]));
     
    128132
    129133add_event_handler('get_admin_plugin_menu_links', 'additional_pages_admin_menu');
     134add_event_handler('init', 'ap_common_init');
    130135add_event_handler('loc_end_section_init', 'section_init_additional_page');
    131136add_event_handler('blockmanager_register_blocks', 'register_ap_menubar_blocks');
Note: See TracChangeset for help on using the changeset viewer.