From 6d5dbae53cd4b4b97da0b0c558292a7f1062a524 Mon Sep 17 00:00:00 2001
From: thomascube <thomas@roundcube.net>
Date: Fri, 25 Jul 2008 11:13:15 -0400
Subject: [PATCH] Prefer File_Info over mime_content_type + detect mime type when uploading + some code style

---
 program/steps/error.inc |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/program/steps/error.inc b/program/steps/error.inc
index afe5a28..bd6fa28 100644
--- a/program/steps/error.inc
+++ b/program/steps/error.inc
@@ -97,11 +97,10 @@
 
 
 
-if (template_exists('error'))
+if ($OUTPUT->template_exists('error'))
   {
-  $OUTPUT->scripts = array();
-  $OUTPUT->script_files = array();
-  parse_template('error');
+  $OUTPUT->reset();
+  $OUTPUT->send('error');
   }
 
 

--
Gitblit v1.9.1