Version 2.0.0-RC4

This commit is contained in:
dmzx
2016-04-02 11:36:20 +02:00
parent 91dfd6d9fc
commit ca5bcaa947
20 changed files with 509 additions and 380 deletions

View File

@@ -154,7 +154,7 @@ class acp_listener implements EventSubscriberInterface
*/
public function acp_users_prefs_modify_template_data($event)
{
$this->user->add_lang_ext('dmzx/mchat', 'mchat_ucp');
$this->user->add_lang_ext('dmzx/mchat', array('mchat_acp', 'mchat_ucp'));
$user_id = $event['user_row']['user_id'];

View File

@@ -55,6 +55,7 @@ class main_listener implements EventSubscriberInterface
'core.index_modify_page_title' => 'display_mchat_on_index',
'core.posting_modify_submit_post_after' => 'posting_modify_submit_post_after',
'core.display_custom_bbcodes_modify_sql' => 'display_custom_bbcodes_modify_sql',
'core.user_add_modify_data' => 'user_registration_set_default_values',
);
}
@@ -123,4 +124,12 @@ class main_listener implements EventSubscriberInterface
{
$event['sql_ary'] = $this->mchat->remove_disallowed_bbcodes($event['sql_ary']);
}
/**
* @param object $event The event object
*/
public function user_registration_set_default_values($event)
{
$event['sql_ary'] = $this->mchat->set_user_default_values($event['sql_ary']);
}
}