Changeset 12702


Ignore:
Timestamp:
Dec 7, 2011, 11:07:28 PM (9 years ago)
Author:
mistic100
Message:

error with pwg_mail, languages badly loaded

Location:
extensions/Subscribe_to_comments
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/Subscribe_to_comments/include/functions.inc.php

    r12620 r12702  
    11<?php
    22if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
     3
     4include_once(PHPWG_ROOT_PATH .'include/functions_tag.inc.php');
    35
    46/**
  • extensions/Subscribe_to_comments/main.inc.php

    r12607 r12702  
    1717define('SUBSCRIBE_TO_TABLE', $prefixeTable . 'subscribe_to_comments');
    1818
    19 include_once(SUBSCRIBE_TO_PATH.'include/functions.inc.php');
    20 include_once(SUBSCRIBE_TO_PATH.'include/subscribe_to_comments.inc.php');
     19add_event_handler('init', 'stc_init');
    2120
    22 load_language('plugin.lang', SUBSCRIBE_TO_PATH);
     21function stc_init()
     22{
     23  include_once(SUBSCRIBE_TO_PATH.'include/functions.inc.php');
     24  include_once(SUBSCRIBE_TO_PATH.'include/subscribe_to_comments.inc.php');
    2325
    24 // send mails
    25 add_event_handler('user_comment_insertion', 'stc_comment_insertion');
    26 add_event_handler('user_comment_validation', 'stc_comment_validation', EVENT_HANDLER_PRIORITY_NEUTRAL, 2);
     26  load_language('plugin.lang', SUBSCRIBE_TO_PATH);
    2727
    28 // subscribe
    29 add_event_handler('loc_end_picture', 'stc_on_picture');
    30 add_event_handler('loc_begin_index', 'stc_on_album');
     28  // send mails
     29  add_event_handler('user_comment_insertion', 'stc_comment_insertion');
     30  add_event_handler('user_comment_validation', 'stc_comment_validation', EVENT_HANDLER_PRIORITY_NEUTRAL, 2);
    3131
    32 // management
    33 add_event_handler('loc_end_section_init', 'stc_detect_section');
    34 add_event_handler('loc_end_index', 'stc_load_section');
     32  // subscribe
     33  add_event_handler('loc_end_picture', 'stc_on_picture');
     34  add_event_handler('loc_begin_index', 'stc_on_album');
    3535
    36 // profile link
    37 add_event_handler('loc_begin_profile', 'stc_profile_link');
     36  // management
     37  add_event_handler('loc_end_section_init', 'stc_detect_section');
     38  add_event_handler('loc_end_index', 'stc_load_section');
    3839
     40  // profile link
     41  add_event_handler('loc_begin_profile', 'stc_profile_link');
     42}
    3943?>
Note: See TracChangeset for help on using the changeset viewer.