Show refresh link only for SELECT and SHOW queries.

This commit is contained in:
Michal Čihař
2004-05-13 17:59:56 +00:00
parent a48c49d701
commit ea63ab24c5
2 changed files with 6 additions and 2 deletions

View File

@@ -22,6 +22,8 @@ $Source$
* tbl_properties_export.php: Generate better query for multi row export.
* tbl_row_delete.php, lang/*: Handle situation, where user didn't select
anything, display DROP query on better place (bellow tabs).
* libraries/common.lib.php: Show refresh link only for SELECT and SHOW
queries.
2004-05-12 Marc Delisle <lem9@users.sourceforge.net>
* db_details_structure.php: bug #951143, undefined $header_url_qry

View File

@@ -1553,8 +1553,10 @@ if (typeof(document.getElementById) != 'undefined'
} //show as php
// Refresh query
if (TRUE || (isset($cfg['SQLQuery']['Refresh'])
&& $cfg['SQLQuery']['Refresh'])) {
if (isset($cfg['SQLQuery']['Refresh'])
&& $cfg['SQLQuery']['Refresh']
&& preg_match('@^(SELECT|SHOW)[[:space:]]+@i', $local_query)) {
$refresh_link = '&nbsp;[<a href="sql.php'
. $url_qpart
. '&amp;show_query=1'