Show refresh link only for SELECT and SHOW queries.
This commit is contained in:
@@ -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
|
||||
|
@@ -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 = ' [<a href="sql.php'
|
||||
. $url_qpart
|
||||
. '&show_query=1'
|
||||
|
Reference in New Issue
Block a user