Changeset View
Changeset View
Standalone View
Standalone View
plugins/kolab_folders/kolab_folders.php
Show First 20 Lines • Show All 318 Lines • ▼ Show 20 Lines | function folder_save($args) | ||||
if (empty($args['record'])) { | if (empty($args['record'])) { | ||||
return $args; | return $args; | ||||
} | } | ||||
// Folder create/update with form | // Folder create/update with form | ||||
$ctype = trim(rcube_utils::get_input_value('_ctype', rcube_utils::INPUT_POST)); | $ctype = trim(rcube_utils::get_input_value('_ctype', rcube_utils::INPUT_POST)); | ||||
$subtype = trim(rcube_utils::get_input_value('_subtype', rcube_utils::INPUT_POST)); | $subtype = trim(rcube_utils::get_input_value('_subtype', rcube_utils::INPUT_POST)); | ||||
$mbox = $args['record']['name']; | $mbox = $args['record']['name']; | ||||
$old_mbox = $args['record']['oldname']; | $old_mbox = $args['record']['oldname'] ?? null; | ||||
$subscribe = $args['record']['subscribe']; | $subscribe = $args['record']['subscribe']; | ||||
if (empty($ctype)) { | if (empty($ctype)) { | ||||
return $args; | return $args; | ||||
} | } | ||||
// load translations | // load translations | ||||
$this->add_texts('localization/', false); | $this->add_texts('localization/', false); | ||||
▲ Show 20 Lines • Show All 518 Lines • Show Last 20 Lines |