Ignore:
Timestamp:
Jun 11, 2012, 11:49:11 PM (12 years ago)
Author:
mistic100
Message:

fix bad loading of language file

File:
1 edited

Legend:

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

    r15108 r15645  
    1616define('REPLYTO_PATH' , PHPWG_PLUGINS_PATH . REPLYTO_DIR . '/');
    1717
    18 include_once(REPLYTO_PATH.'reply_to.inc.php');
    19 load_language('plugin.lang', REPLYTO_PATH);
     18add_event_handler('init', 'replyto_init');
    2019
    21 add_event_handler('render_comment_content', 'replyto_parse', 60, 2);
    22 if (script_basename() == 'comments') add_event_handler('loc_after_page_header', 'replyto_add_link');
    23 else add_event_handler('loc_end_section_init', 'replyto_add_link');
     20function replyto_init()
     21{
     22  include_once(REPLYTO_PATH.'reply_to.inc.php');
     23  load_language('plugin.lang', REPLYTO_PATH);
     24
     25  add_event_handler('render_comment_content', 'replyto_parse', 60, 2);
     26  if (script_basename() == 'comments') add_event_handler('loc_after_page_header', 'replyto_add_link');
     27  else add_event_handler('loc_end_section_init', 'replyto_add_link');
     28}
    2429   
    2530?>
Note: See TracChangeset for help on using the changeset viewer.