Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Ungureanu <udan1107@gmail.com>2015-07-25 16:05:13 +0300
committerDan Ungureanu <udan1107@gmail.com>2015-07-25 19:39:34 +0300
commit1b4a6847e7a246890197e685fb255305ddaa5e5d (patch)
tree0dbff2efc3f481f4aa7eb2207ba47b59a3f2725b /lint.php
parent4a0ab124f72918c7205833ecaf129ed82782d173 (diff)
Updated tests.
Signed-off-by: Dan Ungureanu <udan1107@gmail.com>
Diffstat (limited to 'lint.php')
-rw-r--r--lint.php24
1 files changed, 10 insertions, 14 deletions
diff --git a/lint.php b/lint.php
index 4a65f56edf..7a13d317b1 100644
--- a/lint.php
+++ b/lint.php
@@ -6,9 +6,16 @@
* @package PhpMyAdmin
*/
-if (!defined('PHPMYADMIN')) {
- define('PHPMYADMIN', true);
-}
+/**
+ * Loading common files. Used to check for authorization, localization and to
+ * load the parsing library.
+ */
+require_once 'libraries/common.inc.php';
+
+/**
+ * Loads the linter.
+ */
+require_once 'libraries/Linter.class.php';
/**
* The SQL query to be analyzed.
@@ -23,17 +30,6 @@ if (!defined('PHPMYADMIN')) {
*/
$sql_query = $_REQUEST['sql_query'];
-/**
- * Loading common files. Used to check for authorization, localization and to
- * load the parsing library.
- */
-require_once 'libraries/common.inc.php';
-
-/**
- * Loads the linter.
- */
-require_once 'libraries/Linter.class.php';
-
// Disabling standard response.
$response = PMA_Response::getInstance();
$response->disable();