1
0
mirror of https://github.com/phpmyadmin/phpmyadmin.git synced 2026-10-28 07:41:55 +03:00

message "Bookmark created" is not displaying

This commit is contained in:
Marc Delisle
2009-01-24 16:43:56 +00:00
parent 7acc96d633
commit c19b43557f
3 changed files with 14 additions and 2 deletions

11
sql.php
View File

@@ -2,7 +2,7 @@
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
* @todo we must handle the case if sql.php is called directly with a query
* what returns 0 rows - to prevent cyclic redirects or includes
* that returns 0 rows - to prevent cyclic redirects or includes
* @version $Id$
* @package phpMyAdmin
*/
@@ -106,7 +106,8 @@ if (isset($find_real_end) && $find_real_end) {
*/
if (isset($store_bkm)) {
PMA_Bookmark_save($fields, (isset($bkm_all_users) && $bkm_all_users == 'true' ? true : false));
PMA_sendHeaderLocation($cfg['PmaAbsoluteUri'] . $goto);
// go back to sql.php to redisplay query; do not use & in this case:
PMA_sendHeaderLocation($cfg['PmaAbsoluteUri'] . $goto . '&label=' . $fields['label']);
} // end if
/**
@@ -627,6 +628,12 @@ else {
$disp_mode = 'nnnn110111';
}
if (isset($label)) {
$message = PMA_message::success('strBookmarkCreated');
$message->addParam($label);
$message->display();
}
PMA_displayTable($result, $disp_mode, $analyzed_sql);
PMA_DBI_free_result($result);