|
CVS: phpwiki/lib IniConfig.php,1.74,1.75: msg#00193web.wiki.phpwiki.checkins
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) ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | CVS: phpwiki/lib CachedMarkup.php,1.33,1.34: 00193, Reini Urban |
|---|---|
| Next by Date: | CVS: phpwiki/lib upgrade.php,1.38,1.39: 00193, Reini Urban |
| Previous by Thread: | CVS: phpwiki/lib CachedMarkup.php,1.33,1.34i: 00193, Reini Urban |
| Next by Thread: | CVS: phpwiki/lib upgrade.php,1.38,1.39: 00193, Reini Urban |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |