inc/database.inc.php
changeset 142 edd0c3ee3e1d
parent 136 c795dd75a77e
--- a/inc/database.inc.php	Thu Apr 24 22:33:28 2008 +0000
+++ b/inc/database.inc.php	Mon Apr 28 18:18:06 2008 +0000
@@ -23,12 +23,7 @@
 
 function dbError($msg)
 {
-        // General function for printing critical errors.
-        include_once("header.inc.php");
-        ?>
-	<h2><?php echo _('Oops! An error occured!'); ?></h2>
-	<p class="error"><?php echo $msg->getDebugInfo(); ?></p>
-	<?php        
+	echo "     <div class=\"error\">Error: " . $msg->getDebugInfo() . "</div>\n";
 	include_once("footer.inc.php");
         die();
 }