small CS cleanup

release-0.1^2
PhilW 5 years ago
parent 38181a034f
commit 1393f9d3ff

@ -117,7 +117,7 @@ class swipe extends rcube_plugin
'down' => $config['down'] 'down' => $config['down']
)); ));
$this->rcube->output->set_env('swipe_list_name', $this->actions[$this->list_type]['list_name']); $this->rcube->output->set_env('swipe_list_name', $this->actions[$this->list_type]['list_name']);
$this->rcube->output->set_env('swipe_selection_id',$this->actions[$this->list_type]['selection_id']); $this->rcube->output->set_env('swipe_selection_id', $this->actions[$this->list_type]['selection_id']);
$this->include_stylesheet($this->local_skin_path() . '/swipe.css'); $this->include_stylesheet($this->local_skin_path() . '/swipe.css');
$this->include_script('swipe.js'); $this->include_script('swipe.js');
@ -248,10 +248,10 @@ class swipe extends rcube_plugin
in_array('swipe_actions.' . $this->list_type . '.' . $direction, $this->dont_override)) { in_array('swipe_actions.' . $this->list_type . '.' . $direction, $this->dont_override)) {
$result = false; $result = false;
} }
else if (in_array($action, $this->disabled_actions) || in_array($this->rcube->task . $action, $this->disabled_actions)) { elseif (in_array($action, $this->disabled_actions) || in_array($this->rcube->task . $action, $this->disabled_actions)) {
$result = false; $result = false;
} }
else if (isset($opts['plugin']) && !in_array($action, $this->laoded_plugins)) { elseif (isset($opts['plugin']) && !in_array($action, $this->laoded_plugins)) {
// check plugin is enabled // check plugin is enabled
$result = false; $result = false;
} }

Loading…
Cancel
Save