Ignore:
Timestamp:
Jun 11, 2011, 11:06:33 PM (13 years ago)
Author:
mistic100
Message:

correct regex, parse on notification email and admin page

File:
1 edited

Legend:

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

    r11299 r11325  
    2929  add_event_handler('render_comment_content', 'replyto_parse_picture', 60);
    3030}
     31// parse comment admin side (picture section)
     32else if (script_basename() == 'admin' AND isset($_GET['page']) AND $_GET['page'] == 'comments' AND ( !isset($_GET['section']) OR $_GET['section'] == 'pictures' ) )
     33{
     34  add_event_handler('render_comment_content', 'replyto_parse_picture', 60);
     35}
    3136// add link and parse on album page (compatibility with Comment on Albums)
    3237else if (script_basename() == 'index')
     
    3944  add_event_handler('render_comment_content', 'replyto_parse_album', 60);
    4045}
     46// parse comment admin side (album section)
     47else if (script_basename() == 'admin' AND isset($_GET['page']) AND $_GET['page'] == 'comments' AND $_GET['section'] == 'albums')
     48{
     49  add_event_handler('render_comment_content', 'replyto_parse_album', 60);
     50}
    4151   
    4252?>
Note: See TracChangeset for help on using the changeset viewer.