thomascube
2009-07-13 afc6e4bd108525104b61a46f9973f8f8358c6dd2
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,6 +299,10 @@
            $this->write();
        }
        // set output asap
        ob_flush();
        flush();
        if ($exit) {
            exit;
        }