From 7c460b8258ef21bdd4a9aa12e8107bbce61ab99e Mon Sep 17 00:00:00 2001 From: plegall Date: Fri, 7 May 2010 00:35:43 +0000 Subject: constants should not contain - but _ git-svn-id: http://piwigo.org/svn/trunk@6091 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/include/c13y_internal.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'admin') diff --git a/admin/include/c13y_internal.class.php b/admin/include/c13y_internal.class.php index bb05c316b..820683bff 100644 --- a/admin/include/c13y_internal.class.php +++ b/admin/include/c13y_internal.class.php @@ -47,7 +47,7 @@ class c13y_internal $db_version = pwg_get_db_version(); $check_list[] = array('type' => $conf['dblayer'], 'current' => $db_version, - 'required' => constant('REQUIRED_'.strtoupper($conf['dblayer']).'_VERSION') + 'required' => constant('REQUIRED_'.str_replace('-', '_', strtoupper($conf['dblayer'])).'_VERSION') ); foreach ($check_list as $elem) -- cgit v1.2.3