Thomas Bruederli
2012-11-26 581fe08a050bea2dbdcad30b9a0ea02f5623a3ac
program/lib/Roundcube/rcube_plugin_api.php
@@ -20,8 +20,8 @@
*/
// location where plugins are loade from
if (!defined('RCMAIL_PLUGINS_DIR'))
  define('RCMAIL_PLUGINS_DIR', INSTALL_PATH . 'plugins/');
if (!defined('RCUBE_PLUGINS_DIR'))
  define('RCUBE_PLUGINS_DIR', RCUBE_INSTALL_PATH . 'plugins/');
/**
@@ -101,7 +101,7 @@
   */
  protected function __construct()
  {
    $this->dir = slashify(RCMAIL_PLUGINS_DIR);
    $this->dir = slashify(RCUBE_PLUGINS_DIR);
  }
@@ -370,6 +370,10 @@
   */
  public function register_task($task, $owner)
  {
    // tasks are irrelevant in framework mode
    if (!class_exists('rcmail', false))
      return true;
    if ($task != asciiwords($task)) {
      rcube::raise_error(array('code' => 526, 'type' => 'php',
        'file' => __FILE__, 'line' => __LINE__,