Merge branch 'master' of ssh://git.kolabsys.com/git/roundcube
This commit is contained in:
commit
7ec74047fb
1 changed files with 6 additions and 4 deletions
|
@ -111,8 +111,6 @@ class calendar extends rcube_plugin
|
||||||
$this->register_action('randomdata', array($this, 'generate_randomdata'));
|
$this->register_action('randomdata', array($this, 'generate_randomdata'));
|
||||||
}
|
}
|
||||||
else if ($this->rc->task == 'settings') {
|
else if ($this->rc->task == 'settings') {
|
||||||
$this->load_driver();
|
|
||||||
|
|
||||||
// add hooks for Calendar settings
|
// add hooks for Calendar settings
|
||||||
$this->add_hook('preferences_sections_list', array($this, 'preferences_sections_list'));
|
$this->add_hook('preferences_sections_list', array($this, 'preferences_sections_list'));
|
||||||
$this->add_hook('preferences_list', array($this, 'preferences_list'));
|
$this->add_hook('preferences_list', array($this, 'preferences_list'));
|
||||||
|
@ -205,6 +203,8 @@ class calendar extends rcube_plugin
|
||||||
function preferences_list($p)
|
function preferences_list($p)
|
||||||
{
|
{
|
||||||
if ($p['section'] == 'calendar') {
|
if ($p['section'] == 'calendar') {
|
||||||
|
$this->load_driver();
|
||||||
|
|
||||||
$p['blocks']['view']['name'] = $this->gettext('mainoptions');
|
$p['blocks']['view']['name'] = $this->gettext('mainoptions');
|
||||||
|
|
||||||
$field_id = 'rcmfd_default_view';
|
$field_id = 'rcmfd_default_view';
|
||||||
|
@ -340,6 +340,8 @@ class calendar extends rcube_plugin
|
||||||
function preferences_save($p)
|
function preferences_save($p)
|
||||||
{
|
{
|
||||||
if ($p['section'] == 'calendar') {
|
if ($p['section'] == 'calendar') {
|
||||||
|
$this->load_driver();
|
||||||
|
|
||||||
// compose default alarm preset value
|
// compose default alarm preset value
|
||||||
$alarm_offset = get_input_value('_alarm_offset', RCUBE_INPUT_POST);
|
$alarm_offset = get_input_value('_alarm_offset', RCUBE_INPUT_POST);
|
||||||
$default_alam = $alarm_offset[0] . intval(get_input_value('_alarm_value', RCUBE_INPUT_POST)) . $alarm_offset[1];
|
$default_alam = $alarm_offset[0] . intval(get_input_value('_alarm_value', RCUBE_INPUT_POST)) . $alarm_offset[1];
|
||||||
|
|
Loading…
Add table
Reference in a new issue