Changeset 27822


Ignore:
Timestamp:
03/18/14 19:27:54 (5 years ago)
Author:
mistic100
Message:

compatibility with r27238

Location:
extensions/ExtendedDescription
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/ExtendedDescription/include/events.inc.php

    r27246 r27822  
    55 * Parse [lang] tags 
    66 */ 
     7function parse_lang_tag($desc) 
     8{ 
     9  return get_user_language_desc($desc); 
     10} 
     11 
    712function get_user_language_desc($desc, $user_lang=null) 
    813{ 
  • extensions/ExtendedDescription/main.inc.php

    r26430 r27822  
    4545add_event_handler ('render_page_banner', 'get_extended_desc'); 
    4646// categories 
    47 add_event_handler ('render_category_name',        'get_user_language_desc'); 
     47add_event_handler ('render_category_name',        'parse_lang_tag'); 
    4848add_event_handler ('render_category_description', 'get_extended_desc', EVENT_HANDLER_PRIORITY_NEUTRAL, 2); 
    4949// tags 
    50 add_event_handler ('render_tag_name',   'get_user_language_desc'); 
     50add_event_handler ('render_tag_name',   'parse_lang_tag'); 
    5151add_event_handler ('render_tag_url',    'get_user_language_tag_url', 40); 
    5252add_event_handler ('get_tag_alt_names', 'ed_get_all_alt_names', EVENT_HANDLER_PRIORITY_NEUTRAL, 2); 
    5353// element 
    54 add_event_handler ('render_element_name',        'get_user_language_desc'); 
     54add_event_handler ('render_element_name',        'parse_lang_tag'); 
    5555add_event_handler ('render_element_description', 'get_extended_desc', EVENT_HANDLER_PRIORITY_NEUTRAL, 2); 
    5656// mail/nbm 
Note: See TracChangeset for help on using the changeset viewer.