diff --git a/modules/boonex/notifications/classes/BxNtfsConfig.php b/modules/boonex/notifications/classes/BxNtfsConfig.php index 4342a72612..2739bbe1e0 100644 --- a/modules/boonex/notifications/classes/BxNtfsConfig.php +++ b/modules/boonex/notifications/classes/BxNtfsConfig.php @@ -73,10 +73,10 @@ public function __construct($aModule) 'option' => 'bx_notifications_' ); - $this->_iOwnerNameMaxLen = 21; - $this->_iContentMaxLen = 32; - $this->_iPushMaxLen = 190; + $this->_iOwnerNameMaxLen = 0; + $this->_iContentMaxLen = 0; $this->_iEmailSubjectMaxLen = 0; + $this->_iPushMaxLen = 0; $this->_aHandlerDescriptor = array('module_name' => '', 'module_method' => '', 'module_class' => ''); $this->_sHandlersMethod = 'get_notifications_data'; @@ -143,7 +143,10 @@ public function init(&$oDb) $this->_bClickedIndicator = getParam($sOptionPrefix . 'enable_clicked_indicator') == 'on'; + $this->_iOwnerNameMaxLen = (int)getParam($sOptionPrefix . 'owner_name_chars'); + $this->_iContentMaxLen = (int)getParam($sOptionPrefix . 'content_chars'); $this->_iEmailSubjectMaxLen = (int)getParam($sOptionPrefix . 'email_subject_chars'); + $this->_iPushMaxLen = (int)getParam($sOptionPrefix . 'push_message_chars'); } public function getOwnerNameMaxLen() diff --git a/modules/boonex/notifications/install/config.php b/modules/boonex/notifications/install/config.php index d3fcc583b6..3e9d0386b2 100644 --- a/modules/boonex/notifications/install/config.php +++ b/modules/boonex/notifications/install/config.php @@ -17,12 +17,12 @@ 'name' => 'bx_notifications', 'title' => 'Notifications', 'note' => 'Notifications module.', - 'version' => '13.0.15.DEV', - 'vendor' => 'BoonEx', + 'version' => '14.0.0.DEV', + 'vendor' => 'UNA INC', 'help_url' => 'http://feed.una.io/?section={module_name}', 'compatible_with' => array( - '13.0.x' + '14.0.x' ), /** diff --git a/modules/boonex/notifications/install/langs/en.xml b/modules/boonex/notifications/install/langs/en.xml index f4579cd63e..ca11d2ae2b 100644 --- a/modules/boonex/notifications/install/langs/en.xml +++ b/modules/boonex/notifications/install/langs/en.xml @@ -49,7 +49,10 @@ + + + diff --git a/modules/boonex/notifications/install/sql/enable.sql b/modules/boonex/notifications/install/sql/enable.sql index cd345bdb90..bf973205e2 100644 --- a/modules/boonex/notifications/install/sql/enable.sql +++ b/modules/boonex/notifications/install/sql/enable.sql @@ -97,7 +97,10 @@ INSERT INTO `sys_options` (`name`, `value`, `category_id`, `caption`, `type`, `c ('bx_notifications_delivery_timeout', '120', @iCategId, '_bx_ntfs_option_delivery_timeout', 'digit', '', '', '', '', 20), ('bx_notifications_clear_interval', '90', @iCategId, '_bx_ntfs_option_clear_interval', 'digit', '', '', '', '', 30), ('bx_notifications_enable_comment_post_ext', '', @iCategId, '_bx_ntfs_option_enable_comment_post_ext', 'checkbox', '', '', '', '', 40), -('bx_notifications_email_subject_chars', '30', @iCategId, '_bx_ntfs_option_email_subject_chars', 'digit', '', '', '', '', 50); +('bx_notifications_owner_name_chars', '21', @iCategId, '_bx_ntfs_option_owner_name_chars', 'digit', '', '', '', '', 50), +('bx_notifications_content_chars', '32', @iCategId, '_bx_ntfs_option_content_chars', 'digit', '', '', '', '', 51), +('bx_notifications_email_subject_chars', '30', @iCategId, '_bx_ntfs_option_email_subject_chars', 'digit', '', '', '', '', 52), +('bx_notifications_push_message_chars', '190', @iCategId, '_bx_ntfs_option_push_message_chars', 'digit', '', '', '', '', 53); -- PRIVACY diff --git a/modules/boonex/russian/data/langs/bx_notifications/ru.xml b/modules/boonex/russian/data/langs/bx_notifications/ru.xml index c9af2dff68..b5de618518 100644 --- a/modules/boonex/russian/data/langs/bx_notifications/ru.xml +++ b/modules/boonex/russian/data/langs/bx_notifications/ru.xml @@ -49,7 +49,10 @@ - + + + +