thomascube
2009-07-13 a366a323b5d78f453b4988be576e6520957c9488
program/include/rcube_template.php
@@ -287,6 +287,11 @@
    public function send($templ = null, $exit = true)
    {
        if ($templ != 'iframe') {
            // prevent from endless loops
            if ($this->app->plugins->is_processing('render_page')) {
                raise_error(array('code' => 505, 'type' => 'php', 'message' => 'Recursion alert: ignoring output->send()'), true, false);
                return;
            }
            $this->parse($templ, false);
        }
        else {
@@ -294,11 +299,11 @@
            $this->write();
        }
   // set output asap
   ob_flush();
   flush();
        // set output asap
        ob_flush();
        flush();
        
   if ($exit) {
        if ($exit) {
            exit;
        }
    }