Merge remote-tracking branch 'origin/QA_4_0'

Conflicts:
	libraries/database_interface.lib.php
This commit is contained in:
Michal Čihař 2013-09-12 10:02:38 +02:00
commit 072ed2aed4
4 changed files with 11 additions and 8 deletions

View File

@ -44,6 +44,7 @@ phpMyAdmin - ChangeLog
- bug Handle the situation where PHP_SELF is not set
- bug #4080 Overwrite existing file not obeyed
- bug #3929 Database-specific privileges are not copied when cloning user
- bug #3997 Error handling in case MySQL extension is missing
4.0.6.0 (2013-09-05)
- bug #4036 Call to undefined function mb_detect_encoding (clarify the doc)

View File

@ -32,7 +32,7 @@
*/
/**
* block attempts to directly run this script
* block attempts to directly run this script
*/
if (getcwd() == dirname(__FILE__)) {
die('Attack stopped');
@ -731,11 +731,6 @@ if (@file_exists($_SESSION['PMA_Theme']->getLayoutFile())) {
}
if (! defined('PMA_MINIMUM_COMMON')) {
if (! defined('PMA_BYPASS_GET_INSTANCE')) {
// get a dummy object to ensure that the class is instanciated
PMA_Response::getInstance();
}
/**
* Character set conversion.
*/

View File

@ -29,6 +29,12 @@ if (defined('TESTSUITE')) {
// if it fails try alternative extension ...
// and display an error ...
$docurl = PMA_Util::getDocuLink('faq', 'faqmysql');
$doclink = sprintf(
__('See %sour documentation%s for more information.'),
'[a@' . $docurl . '@documentation]',
'[/a]'
);
/**
* @todo add different messages for alternative extension
@ -37,7 +43,7 @@ if (defined('TESTSUITE')) {
PMA_warnMissingExtension(
$extensionName,
false,
PMA_Util::showDocu('faq', 'faqmysql')
$doclink
);
if ($extensionName === 'mysql') {
@ -51,7 +57,7 @@ if (defined('TESTSUITE')) {
PMA_warnMissingExtension(
$extensionName,
true,
PMA_Util::showDocu('faq', 'faqmysql')
$doclink
);
}

View File

@ -9,6 +9,7 @@
/**
* Gets core libraries and defines some variables
*/
define('PMA_MINIMUM_COMMON', True);
require_once './libraries/common.inc.php';
if (! PMA_isValid($_GET['url'])