Merge branch 'MAINT_4_0_6' into QA_4_0

This commit is contained in:
Marc Delisle 2013-08-31 07:49:16 -04:00
commit e231569bce
3 changed files with 10 additions and 4 deletions

View File

@ -17,6 +17,7 @@ phpMyAdmin - ChangeLog
- bug #4066 varchar field not truncated in table browse mode
+ rfe #1435 Opening database should expand it in the navigation menu
- (performance) Removed ShowTooltip directive
- bug #4046 Exporting huge Tables causes memory-Problems
4.0.5.0 (2013-08-04)
- bug #3977 Not detected configuration storage

View File

@ -9,6 +9,7 @@
/**
* Get the variables sent or posted to this script and a core script
*/
define('PMA_BYPASS_GET_INSTANCE', 1);
require_once 'libraries/common.inc.php';
require_once 'libraries/zip.lib.php';
require_once 'libraries/plugin_interface.lib.php';

View File

@ -749,8 +749,10 @@ if (@file_exists($_SESSION['PMA_Theme']->getLayoutFile())) {
}
if (! defined('PMA_MINIMUM_COMMON')) {
// get a dummy object to ensure that the class is instanciated
PMA_Response::getInstance();
if (! defined('PMA_BYPASS_GET_INSTANCE')) {
// get a dummy object to ensure that the class is instanciated
PMA_Response::getInstance();
}
/**
* Character set conversion.
@ -1055,7 +1057,9 @@ if (! defined('PMA_MINIMUM_COMMON')) {
* Inclusion of profiling scripts is needed on various
* pages like sql, tbl_sql, db_sql, tbl_select
*/
$response = PMA_Response::getInstance();
if (! defined('PMA_BYPASS_GET_INSTANCE')) {
$response = PMA_Response::getInstance();
}
if (isset($_SESSION['profiling'])) {
$header = $response->getHeader();
$scripts = $header->getScripts();
@ -1072,7 +1076,7 @@ if (! defined('PMA_MINIMUM_COMMON')) {
* There is no point in even attempting to process
* an ajax request if there is a token mismatch
*/
if ($response->isAjax() && $token_mismatch) {
if (isset($response) && $response->isAjax() && $token_mismatch) {
$response->isSuccess(false);
$response->addJSON(
'message',