From: Reini U. <ru...@us...> - 2005-01-30 21:52:18
|
Update of /cvsroot/phpwiki/phpwiki/lib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv853 Modified Files: IniConfig.php Log Message: print early warning on wrong DATABASE_TYPE Index: IniConfig.php =================================================================== RCS file: /cvsroot/phpwiki/phpwiki/lib/IniConfig.php,v retrieving revision 1.74 retrieving revision 1.75 diff -u -2 -b -p -d -r1.74 -r1.75 --- IniConfig.php 29 Jan 2005 20:35:52 -0000 1.74 +++ IniConfig.php 30 Jan 2005 21:52:09 -0000 1.75 @@ -281,4 +281,6 @@ function IniConfig($file) { } } + if (!in_array(DATABASE_TYPE, array('SQL','ADODB','dba','file','cvs'))) + trigger_error(sprintf("Invalid DATABASE_TYPE=%s. Choose on of SQL,ADODB,dba,file,cvs", DATABASE_TYPE)); // USE_DB_SESSION default logic: if (!defined('USE_DB_SESSION')) { @@ -770,4 +772,7 @@ function fixup_dynamic_configs() { // $Log$ +// Revision 1.75 2005/01/30 21:52:09 rurban +// print early warning on wrong DATABASE_TYPE +// // Revision 1.74 2005/01/29 20:35:52 rurban // helper for local debugging (Zend Personal Edition) |