diff options
author | Maurício Meneghini Fauth <mauriciofauth@gmail.com> | 2017-09-14 01:09:59 +0300 |
---|---|---|
committer | Maurício Meneghini Fauth <mauriciofauth@gmail.com> | 2017-09-14 01:09:59 +0300 |
commit | 56fe75d730d7f4587b96b714cf61cec406132568 (patch) | |
tree | bbb8dc0e7a81c1a85c86c568093bf75c60e7a424 /tbl_sql.php | |
parent | d2c487e378fc8ab3f25ca60d1045a9154b465cf3 (diff) |
Refactor sql_query_form functions to static methods
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
Diffstat (limited to 'tbl_sql.php')
-rw-r--r-- | tbl_sql.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tbl_sql.php b/tbl_sql.php index f33569bb92..d6e50b9f79 100644 --- a/tbl_sql.php +++ b/tbl_sql.php @@ -7,6 +7,7 @@ */ use PhpMyAdmin\Config\PageSettings; use PhpMyAdmin\Response; +use PhpMyAdmin\SqlQueryForm; /** * @@ -28,8 +29,6 @@ $scripts->addFile('sql.js'); require 'libraries/tbl_common.inc.php'; $url_query .= '&goto=tbl_sql.php&back=tbl_sql.php'; -require_once 'libraries/sql_query_form.lib.php'; - $err_url = 'tbl_sql.php' . $err_url; // After a syntax error, we return to this script // with the typed query in the textarea. @@ -40,7 +39,7 @@ $back = 'tbl_sql.php'; * Query box, bookmark, insert data from textfile */ $response->addHTML( - PMA_getHtmlForSqlQueryForm( + SqlQueryForm::getHtml( true, false, isset($_REQUEST['delimiter']) ? htmlspecialchars($_REQUEST['delimiter']) |