[Phpmyadmin-git] [SCM] phpMyAdmin branch, master, updated. RELEASE_3_4_0BETA4-986-g29dbdde
Marc Delisle
lem9 at users.sourceforge.net
Wed Mar 23 13:10:31 CET 2011
The branch, master has been updated
via 29dbdde4ffb4c4cbb13fd2351eabb5f22042c9ac (commit)
from 701a668d354f8d6e8b47579a59feff4775dc820f (commit)
- Log -----------------------------------------------------------------
commit 29dbdde4ffb4c4cbb13fd2351eabb5f22042c9ac
Author: Marc Delisle <marc at infomarc.info>
Date: Wed Mar 23 08:10:22 2011 -0400
Avoid displaying a Back link in a error message if we are in Ajax mode
-----------------------------------------------------------------------
Summary of changes:
libraries/common.lib.php | 22 ++++++++++++----------
1 files changed, 12 insertions(+), 10 deletions(-)
diff --git a/libraries/common.lib.php b/libraries/common.lib.php
index bea2c65..ef8c637 100644
--- a/libraries/common.lib.php
+++ b/libraries/common.lib.php
@@ -661,6 +661,14 @@ function PMA_mysqlDie($error_message = '', $the_query = '',
$_SESSION['Import_message']['message'] = $error_msg_output;
if ($exit) {
+ /**
+ * If in an Ajax request
+ * - avoid displaying a Back link
+ * - use PMA_ajaxResponse() to transmit the message and exit
+ */
+ if($GLOBALS['is_ajax_request'] == true) {
+ PMA_ajaxResponse($error_msg_output, false);
+ }
if (! empty($back_url)) {
if (strstr($back_url, '?')) {
$back_url .= '&no_history=true';
@@ -675,16 +683,10 @@ function PMA_mysqlDie($error_message = '', $the_query = '',
$error_msg_output .= '</fieldset>' . "\n\n";
}
- /**
- * If in an Ajax request, don't just echo and exit. Use PMA_ajaxResponse()
- */
- if($GLOBALS['is_ajax_request'] == true) {
- PMA_ajaxResponse($error_msg_output, false);
- }
- echo $error_msg_output;
- /**
- * display footer and exit
- */
+ echo $error_msg_output;
+ /**
+ * display footer and exit
+ */
require './libraries/footer.inc.php';
} else {
echo $error_msg_output;
hooks/post-receive
--
phpMyAdmin
More information about the Git
mailing list