Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Delisle <marc@infomarc.info>2011-09-20 16:47:18 +0400
committerMarc Delisle <marc@infomarc.info>2011-09-20 16:47:18 +0400
commit516891a6b8b38c6fc0921e434318a834d2133038 (patch)
tree61464b3d006a6000f8b91bc68b7318f917b32ace /import.php
parentb4d96e83df4bd4a1a7eb54199879b187f4f2cda9 (diff)
View only bookmark did not work with CodeMirror
Diffstat (limited to 'import.php')
-rw-r--r--import.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/import.php b/import.php
index 92859ff785..12af12f349 100644
--- a/import.php
+++ b/import.php
@@ -164,7 +164,13 @@ if (!empty($id_bookmark)) {
break;
case 1: // bookmarked query that have to be displayed
$import_text = PMA_Bookmark_get($db, $id_bookmark);
- $run_query = false;
+ if ($GLOBALS['is_ajax_request'] == true) {
+ $extra_data['sql_query'] = $import_text;
+ $message = PMA_Message::success(__('Showing bookmark'));
+ PMA_ajaxResponse($message, $message->isSuccess(), $extra_data);
+ } else {
+ $run_query = false;
+ }
break;
case 2: // bookmarked query that have to be deleted
$import_text = PMA_Bookmark_get($db, $id_bookmark);