When in 'show as php' mode, no need to have 'refresh'. 'Submit query' is there instead.

This commit is contained in:
Madhura Jayaratne 2011-10-10 07:31:35 +05:30
parent eef315c635
commit 39cd736648

View File

@ -1219,6 +1219,7 @@ function PMA_showMessage($message, $sql_query = null, $type = 'notice', $is_view
// Refresh query
if (! empty($cfg['SQLQuery']['Refresh'])
&& ! isset($GLOBALS['show_as_php']) // 'Submit query' does the same
&& preg_match('@^(SELECT|SHOW)[[:space:]]+@i', $sql_query)
) {
$refresh_link = 'import.php' . PMA_generate_common_url($url_params);
@ -3151,7 +3152,7 @@ function PMA_expandUserString($string, $escape = null, $updates = array())
/* Backward compatibility in 3.5.x */
if (strpos($string, '@FIELDS@') !== false) {
$string = strtr($string, array('@FIELDS@' => '@COLUMNS@'));
$string = strtr($string, array('@FIELDS@' => '@COLUMNS@'));
}
/* Fetch columns list if required */