From d91fedb8d45fafa2c16859771fdb958aa10ad469 Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Wed, 23 Apr 2008 02:52:49 -0400
Subject: [PATCH] #1485003: s/rc_mail_mime/rcube_mail_mime/

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

diff --git a/program/steps/error.inc b/program/steps/error.inc
index 8ba39d3..4a151d4 100644
--- a/program/steps/error.inc
+++ b/program/steps/error.inc
@@ -5,7 +5,7 @@
  | program/steps/error.inc                                               |
  |                                                                       |
  | This file is part of the RoundCube Webmail client                     |
- | Copyright (C) 2005, RoundCube Dev. - Switzerland                      |
+ | Copyright (C) 2005-2007, RoundCube Dev. - Switzerland                 |
  | Licensed under the GNU GPL                                            |
  |                                                                       |
  | PURPOSE:                                                              |
@@ -63,6 +63,15 @@
 EOF;
   }
 
+// database connection error
+else if ($ERROR_CODE==603)
+  {
+  $__error_title = "DATABASE ERROR: CONNECTION FAILED!";
+  $__error_text  =  <<<EOF
+Unable to connect to the database!<br /> 
+Please contact your server-administrator. 
+EOF;
+  }
 
 // system error
 else
@@ -92,7 +101,7 @@
   {
   $OUTPUT->scripts = array();
   $OUTPUT->script_files = array();
-  parse_template('error');
+  $OUTPUT->send('error');
   }
 
 
@@ -115,4 +124,4 @@
 </html>
 EOF;
 
-?>
\ No newline at end of file
+?>

--
Gitblit v1.9.1