diff --git a/ChangeLog b/ChangeLog index 23198f2e3..165dd4ff1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -56,6 +56,7 @@ $Id$ Martynas Mickevičius + patch #2967320 [designer] Colored relations based on the primary key, thanks to GreenRover - greenrover +- [core] Provide way for vendors to easily change paths to config files. 3.3.2.0 (not yet released) - patch #2969449 [core] Name for MERGE engine varies depending on the diff --git a/libraries/auth/cookie.auth.lib.php b/libraries/auth/cookie.auth.lib.php index 2ae3d2fd4..0ea4a8166 100644 --- a/libraries/auth/cookie.auth.lib.php +++ b/libraries/auth/cookie.auth.lib.php @@ -199,8 +199,8 @@ if (top != self) {
@@ -343,8 +343,8 @@ window.setTimeout('PMA_focusInput()', 500); // ]]> @@ -682,7 +682,7 @@ function PMA_auth_fails() } } } elseif (PMA_DBI_getError()) { - $conn_error = '#' . $GLOBALS['errno'] . ' ' . $GLOBALS['strCannotLogin']; + $conn_error = '#' . $GLOBALS['errno'] . ' ' . $GLOBALS['strCannotLogin']; } else { $conn_error = $GLOBALS['strCannotLogin']; } diff --git a/libraries/auth/http.auth.lib.php b/libraries/auth/http.auth.lib.php index af1b353b8..8d67cb4ca 100644 --- a/libraries/auth/http.auth.lib.php +++ b/libraries/auth/http.auth.lib.php @@ -55,8 +55,8 @@ function PMA_auth() @@ -69,8 +69,8 @@ function PMA_auth() display(); - if (file_exists('./config.footer.inc.php')) { - require './config.footer.inc.php'; + if (file_exists(CUSTOM_FOOTER_FILE)) { + require CUSTOM_FOOTER_FILE; } ?> diff --git a/libraries/common.inc.php b/libraries/common.inc.php index fd4f3d1cb..a81d1970d 100644 --- a/libraries/common.inc.php +++ b/libraries/common.inc.php @@ -288,7 +288,7 @@ if (! function_exists('preg_replace')) { * force reading of config file, because we removed sensitive values * in the previous iteration */ -$GLOBALS['PMA_Config'] = new PMA_Config('./config.inc.php'); +$GLOBALS['PMA_Config'] = new PMA_Config(CONFIG_FILE); if (!defined('PMA_MINIMUM_COMMON')) { $GLOBALS['PMA_Config']->checkPmaAbsoluteUri(); @@ -589,7 +589,7 @@ require_once './libraries/select_lang.lib.php'; if ($GLOBALS['PMA_Config']->error_config_file) { $error = $strConfigFileError . '