Ignore:
Timestamp:
Jan 13, 2014, 1:18:18 PM (11 years ago)
Author:
mistic100
Message:

compatibility with Comments on Albums for 2.6

File:
1 edited

Legend:

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

    r15645 r26677  
    44Version: auto
    55Description: This plugin allows you to add Twitter-like reply links to comments.
    6 Plugin URI: http://piwigo.org/ext/extension_view.php?eid=556
     6Plugin URI: auto
    77Author: Mistic
    88Author URI: http://www.strangeplanet.fr
    99*/
    1010
    11 if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
     11defined('PHPWG_ROOT_PATH') or die('Hacking attempt!');
    1212
    1313global $page;
    1414
    15 define('REPLYTO_DIR' , basename(dirname(__FILE__)));
    16 define('REPLYTO_PATH' , PHPWG_PLUGINS_PATH . REPLYTO_DIR . '/');
     15define('REPLYTO_ID' ,  basename(dirname(__FILE__)));
     16define('REPLYTO_PATH' , PHPWG_PLUGINS_PATH . REPLYTO_ID . '/');
    1717
    1818add_event_handler('init', 'replyto_init');
     
    2424
    2525  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');
     26  if (script_basename() == 'comments')
     27  {
     28    add_event_handler('loc_end_comments', 'replyto_add_link', 60);
     29  }
     30  else
     31  {
     32    add_event_handler('loc_end_section_init', 'replyto_add_link');
     33  }
    2834}
    29    
    30 ?>
Note: See TracChangeset for help on using the changeset viewer.