From b2fd866d87abe49b7003393004dcec8805125362 Mon Sep 17 00:00:00 2001 From: Jo Michael Date: Fri, 16 Mar 2012 23:11:57 +0100 Subject: Leading ./ paths for includes can be omitted, part 2 --- db_sql.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'db_sql.php') diff --git a/db_sql.php b/db_sql.php index 5c64af77b6..23c1c64162 100644 --- a/db_sql.php +++ b/db_sql.php @@ -8,7 +8,7 @@ /** * */ -require_once './libraries/common.inc.php'; +require_once 'libraries/common.inc.php'; /** * Runs common work @@ -19,8 +19,8 @@ $GLOBALS['js_include'][] = 'sql.js'; $GLOBALS['js_include'][] = 'codemirror/lib/codemirror.js'; $GLOBALS['js_include'][] = 'codemirror/mode/mysql/mysql.js'; -require './libraries/db_common.inc.php'; -require_once './libraries/sql_query_form.lib.php'; +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. @@ -45,11 +45,11 @@ foreach ($get_params as $one_get_param) { * Gets informations about the database and, if it is empty, move to the * "db_structure.php" script where table can be created */ -require './libraries/db_info.inc.php'; +require 'libraries/db_info.inc.php'; if ($num_tables == 0 && empty($db_query_force)) { $sub_part = ''; $is_info = true; - include './db_structure.php'; + include 'db_structure.php'; exit(); } @@ -61,5 +61,5 @@ PMA_sqlQueryForm(true, false, isset($_REQUEST['delimiter']) ? htmlspecialchars($ /** * Displays the footer */ -require './libraries/footer.inc.php'; +require 'libraries/footer.inc.php'; ?> -- cgit v1.2.3