Update of /cvsroot/php-blog/serendipity/include/admin
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20063/admin
Modified Files:
installer.inc.php
Log Message:
- Here be dragons and NO application logic!
- Add "probeDefault" flag, which will run $item['var'] through serendipity_probeInstallation() and set the returned value as $item['default']
Index: installer.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/include/admin/installer.inc.php,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- installer.inc.php 29 Dec 2004 19:07:06 -0000 1.16
+++ installer.inc.php 17 Jan 2005 19:07:24 -0000 1.17
@@ -111,21 +111,7 @@
<td>Database extensions</td>
<td width="200"><?php
- $_res = array();
- if ( extension_loaded('mysql') ) {
- $_res[] = 'MySQL';
- }
- if ( extension_loaded('mysqli') ) {
- $_res[] = 'MySQLi';
- }
- if ( extension_loaded('pgsql') ) {
- $_res[] = 'PostgreSQL';
- }
- if ( extension_loaded('sqlite') ) {
- $_res[] = 'SQLite';
- }
-
- if ( sizeof($_res) == 0 ) {
+ if ( sizeof(($_res = serendipity_probeInstallation('dbType')) == 0 ) {
echo serendipity_installerResultDiagnose(S9Y_I_ERROR, NONE);
} else {
echo serendipity_installerResultDiagnose(S9Y_I_SUCCESS, implode(', ', $_res));
|