sorry, broke cvs when I incorrectly resolved a conflict. Fixed global variables.
authorchriskl <chriskl>
Mon, 6 Jan 2003 08:36:18 +0000 (08:36 +0000)
committerchriskl <chriskl>
Mon, 6 Jan 2003 08:36:18 +0000 (08:36 +0000)
libraries/errorhandler.inc.php

index 59c2167e94c02fd89129106e0c8d3aecbab9272b..ce5ac32a783e0603ce0f40b2c324e951f01b14f5 100644 (file)
@@ -3,7 +3,7 @@
 /**
  * Overrides default ADODB error handler to provide nicer error handling.
  *
- * $Id: errorhandler.inc.php,v 1.5 2003/01/04 07:08:03 chriskl Exp $
+ * $Id: errorhandler.inc.php,v 1.6 2003/01/06 08:36:18 chriskl Exp $
  */
 
 define('ADODB_ERROR_HANDLER','Error_Handler');
@@ -21,7 +21,7 @@ define('ADODB_ERROR_HANDLER','Error_Handler');
 function Error_Handler($dbms, $fn, $errno, $errmsg, $p1=false, $p2=false)
 {
        global $strSQLError, $strInStatement, $strLogin, $strLoginFailed;
-       global $misc, $appName;
+       global $misc, $appName, $appBase, $strUsername, $strPassword, $strServer;
 
        switch($fn) {
        case 'EXECUTE':
@@ -37,7 +37,6 @@ function Error_Handler($dbms, $fn, $errno, $errmsg, $p1=false, $p2=false)
 
        case 'PCONNECT':
        case 'CONNECT':
-               include('../conf/config.inc.php');
                $_failed = true;
                // Theme
                echo "<style type=\"text/css\">\n<!--\n";