Ignore:
Timestamp:
Oct 8, 2011, 8:30:16 PM (12 years ago)
Author:
mistic100
Message:

activate replyTo button on comments.php

File:
1 edited

Legend:

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

    r11416 r12389  
    2020
    2121add_event_handler('render_comment_content', 'replyto_parse', 60, 2);
    22 // add_event_handler('init', 'replyto_add_link');                  // for comments page (section_init.inc is not called on this page)
    23 add_event_handler('loc_end_section_init', 'replyto_add_link');  // for all the rest
     22if (script_basename() == 'comments') add_event_handler('init', 'replyto_add_link'); // for comments page (section_init.inc is not called on this page)
     23else add_event_handler('loc_end_section_init', 'replyto_add_link'); // for all other pages (we need section infos)
    2424   
    2525?>
Note: See TracChangeset for help on using the changeset viewer.