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 /db_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 'db_sql.php')
-rw-r--r-- | db_sql.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/db_sql.php b/db_sql.php index 5c1dee5ea8..9dfd3e7397 100644 --- a/db_sql.php +++ b/db_sql.php @@ -7,6 +7,7 @@ */ use PhpMyAdmin\Config\PageSettings; use PhpMyAdmin\Response; +use PhpMyAdmin\SqlQueryForm; /** * @@ -26,7 +27,6 @@ $scripts->addFile('vendor/jquery/jquery.uitablefilter.js'); $scripts->addFile('sql.js'); require 'libraries/db_common.inc.php'; -require_once 'libraries/sql_query_form.lib.php'; // After a syntax error, we return to this script // with the typed query in the textarea. @@ -37,7 +37,7 @@ $back = 'db_sql.php'; * Query box, bookmark, insert data from textfile */ $response->addHTML( - PMA_getHtmlForSqlQueryForm( + SqlQueryForm::getHtml( true, false, isset($_REQUEST['delimiter']) ? htmlspecialchars($_REQUEST['delimiter']) |