Use PMA_MAJOR_VERSION as a constant

Looking at bootstrap-dist.php, it looks like PMA_MAJOR_VERSION was in fact intended to be used as a constant

Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
This commit is contained in:
Madhura Jayaratne 2017-05-18 09:41:24 +10:00
parent 26403c8447
commit 344e6887f8
2 changed files with 2 additions and 1 deletions

View File

@ -1456,6 +1456,7 @@ class Config
$defines = array(
'PMA_VERSION',
'PMA_MAJOR_VERSION',
'PMA_THEME_VERSION',
'PMA_THEME_GENERATION',
'PMA_IS_WINDOWS',

View File

@ -118,7 +118,7 @@ class Theme
if (! is_array($data['supports'])) {
return false;
}
if (! in_array($GLOBALS['PMA_Config']->get('PMA_MAJOR_VERSION'), $data['supports'])) {
if (! in_array(PMA_MAJOR_VERSION, $data['supports'])) {
return false;
}