aboutsummaryrefslogtreecommitdiffstats
path: root/admin/include/c13y_internal.class.php
diff options
context:
space:
mode:
authornikrou <nikrou@piwigo.org>2009-11-29 12:35:19 +0000
committernikrou <nikrou@piwigo.org>2009-11-29 12:35:19 +0000
commitc96097529e49943eddba78d70e23e38c0eac494d (patch)
tree5925d92bcad222348680a3ea6253d5743dbe38a4 /admin/include/c13y_internal.class.php
parent13ea9d50e35d9dd8cf7235a39d97a344e6091ea0 (diff)
Feature_1255 :
- single quotes in queries - start using $conf['dblayer'] git-svn-id: http://piwigo.org/svn/trunk@4385 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--admin/include/c13y_internal.class.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/admin/include/c13y_internal.class.php b/admin/include/c13y_internal.class.php
index 1fe83c0df..7b20e24db 100644
--- a/admin/include/c13y_internal.class.php
+++ b/admin/include/c13y_internal.class.php
@@ -38,12 +38,17 @@ class c13y_internal
*/
function c13y_version($c13y)
{
+ global $conf;
+
$check_list = array();
$check_list[] = array('type' => 'PHP', 'current' => phpversion(), 'required' => REQUIRED_PHP_VERSION);
$db_version = pwg_get_db_version();
- $check_list[] = array('type' => 'MySQL', 'current' => $db_version, 'required' => REQUIRED_MYSQL_VERSION);
+ $check_list[] = array('type' => $conf['dblayer'],
+ 'current' => $db_version,
+ 'required' => constant('REQUIRED_'.strtoupper($conf['dblayer']).'_VERSION')
+ );
foreach ($check_list as $elem)
{