Fix including of files when search path does not contain current directory.
This commit is contained in:
@@ -14,6 +14,8 @@ $Source$
|
||||
name (bug #1180668).
|
||||
* libraries/common.lib.php: Do not escape SQL query twice while showing it
|
||||
in error message (bug #1336452).
|
||||
* left.php, querywindow.php, tbl_query_box.php: Fix including of files
|
||||
when search path does not contain current directory.
|
||||
|
||||
2005-10-29 Michal Čihař <michal@cihar.com>
|
||||
* Documentation.html, config.default.php, libraries/common.lib.php: Link
|
||||
|
2
left.php
2
left.php
@@ -111,7 +111,7 @@ echo "<?xml version=\"1.0\" encoding=\"" . $GLOBALS['charset'] . "\"?".">";
|
||||
|
||||
<body id="body_leftFrame">
|
||||
<?php
|
||||
require 'libraries/left_header.inc.php';
|
||||
require './libraries/left_header.inc.php';
|
||||
|
||||
if ( $num_dbs === 0 ) {
|
||||
// no database available, so we break here
|
||||
|
@@ -242,13 +242,13 @@ if ( $GLOBALS['cfg']['QueryFrame'] && ! $GLOBALS['cfg']['QueryFrameJS'] ) {
|
||||
// ... we redirect to appropriate query sql page
|
||||
// works only full if $db and $table is also stored/grabbed from $_COOKIE
|
||||
if ( ! empty( $table ) ) {
|
||||
require 'tbl_properties.php';
|
||||
require './tbl_properties.php';
|
||||
}
|
||||
elseif ( ! empty( $db ) ) {
|
||||
require 'db_details.php';
|
||||
require './db_details.php';
|
||||
}
|
||||
else {
|
||||
require 'server_sql.php';
|
||||
require './server_sql.php';
|
||||
}
|
||||
exit;
|
||||
}
|
||||
|
@@ -30,13 +30,13 @@ if ( $GLOBALS['cfg']['QueryFrame'] && ! $GLOBALS['cfg']['QueryFrameJS']
|
||||
// ... we redirect to appropriate query sql page
|
||||
// works only full if $db and $table is also stored/grabbed from $_COOKIE
|
||||
if ( ! empty( $table ) ) {
|
||||
require 'tbl_properties.php';
|
||||
require './tbl_properties.php';
|
||||
}
|
||||
elseif ( ! empty( $db ) ) {
|
||||
require 'db_details.php';
|
||||
require './db_details.php';
|
||||
}
|
||||
else {
|
||||
require 'server_sql.php';
|
||||
require './server_sql.php';
|
||||
}
|
||||
exit;
|
||||
}
|
||||
|
Reference in New Issue
Block a user