alecpl
2011-01-19 8ec1b91bb931dca361944db021e9b3706ad04c06
- Uncomment code (commented out for testing?) + cleanup whitespaces


1 files modified
8 ■■■■ changed files
program/include/rcube_plugin_api.php 8 ●●●● patch | view | raw | blame | history
program/include/rcube_plugin_api.php
@@ -175,9 +175,9 @@
        // check inheritance...
        if (is_subclass_of($plugin, 'rcube_plugin')) {
          // ... task, request type and framed mode
          if ((!$plugin->task || preg_match('/^('.$plugin->task.')$/i', $rcmail->task)) /*
          if ((!$plugin->task || preg_match('/^('.$plugin->task.')$/i', $rcmail->task))
              && (!$plugin->noajax || is_a($rcmail->output, 'rcube_template'))
              && (!$plugin->noframe || empty($_REQUEST['_framed']))*/
              && (!$plugin->noframe || empty($_REQUEST['_framed']))
          ) {
            $plugin->init();
            $this->plugins[$plugin_name] = $plugin;
@@ -394,6 +394,7 @@
    }
  }
  /**
   * Include a plugin stylesheet in the current HTML page
   *
@@ -407,6 +408,7 @@
    }
  }
  
  /**
   * Save the given HTML content to be added to a template container
   *
@@ -417,6 +419,7 @@
  {
    $this->template_contents[$container] .= $html . "\n";
  }
  
  /**
   * Callback for template_container hooks
@@ -430,6 +433,7 @@
    return array('content' => $attrib['content'] . $this->template_contents[$container]);
  }
  
  /**
   * Make the given file name link into the plugins directory
   *