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:
authorRouslan Placella <rouslan@placella.com>2012-06-06 15:03:47 +0400
committerRouslan Placella <rouslan@placella.com>2012-06-06 15:03:47 +0400
commiteece82dc8172ae50fe6aff4c1cd3033632e192c5 (patch)
tree1723303d2bf70beddb3985d6294d08971fa8df50 /db_qbe.php
parent5ba4212f82aca8dd12e7360197be0f5e6d7f89ff (diff)
Fixed broken "Switch to visual builder" link in db_qbe.php
Diffstat (limited to 'db_qbe.php')
-rw-r--r--db_qbe.php38
1 files changed, 15 insertions, 23 deletions
diff --git a/db_qbe.php b/db_qbe.php
index 4a5d100adb..27ba771966 100644
--- a/db_qbe.php
+++ b/db_qbe.php
@@ -168,29 +168,21 @@ function showColumnSelectCell($columns, $column_number, $selected = '')
<?php
}
-?>
-<?php if (! empty($tab_designer['link'])) {
- $tab_designer['link'] = htmlentities($tab_designer['link']);
- $tab_designer['link'] = $tab_designer['link'] . PMA_generate_common_url($url_params);
- if (! empty($tab_designer['args'])) {
- foreach ($tab_designer['args'] as $param => $value) {
- $tab_designer['link'] .= PMA_get_arg_separator('html') . urlencode($param) . '='
- . urlencode($value);
- }
- }
- }
- if (! empty($tab['fragment'])) {
- $tab['link'] .= $tab['fragment'];
- }
- if (isset($tab_designer['link'])) {
-?>
-<div id="visual_builder_anchor" class="notice hide">
- <span id="footnote_1">
-<?php printf(__('Switch to %svisual builder%s'), ' <a href="' . $tab_designer['link'] . PMA_get_arg_separator('html') . 'query=1">', '</a>'); ?>
- </span>
-</div>
-<?php
- }
+if ($cfgRelation['designerwork']) {
+ $url = 'pmd_general.php' . PMA_generate_common_url(
+ array_merge(
+ $url_params,
+ array('query' => 1)
+ )
+ );
+ PMA_Message::notice(
+ sprintf(
+ __('Switch to %svisual builder%s'),
+ '<a href="' . $url . '">',
+ '</a>'
+ )
+ )->display();
+}
?>
<form action="db_qbe.php" method="post">
<fieldset>