From: <gi...@ma...> - 2010-05-18 14:11:22
|
The branch, master has been updated via 8bf42a625ee0d2372810acbde33be7a7fcc2aa17 (commit) from 782a7e03817cfdc345456af4ee4811eb8866d2b6 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 8bf42a625ee0d2372810acbde33be7a7fcc2aa17 Author: David Hicks <hic...@op...> Date: Wed May 19 00:10:16 2010 +1000 Fix $t_path variable not found error from last commit The forward port of 782a7e03817cfdc345456af4ee4811eb8866d2b6 was incorrect as it removed a line of code that was essential. My bad! ----------------------------------------------------------------------- Summary of changes: config_defaults_inc.php | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) ----------------------------------------------------------------------- commit 8bf42a625ee0d2372810acbde33be7a7fcc2aa17 Author: David Hicks <hic...@op...> Date: Wed May 19 00:10:16 2010 +1000 Fix $t_path variable not found error from last commit The forward port of 782a7e03817cfdc345456af4ee4811eb8866d2b6 was incorrect as it removed a line of code that was essential. My bad! diff --git a/config_defaults_inc.php b/config_defaults_inc.php index a75e817..92acf2e 100644 --- a/config_defaults_inc.php +++ b/config_defaults_inc.php @@ -126,6 +126,7 @@ if ( isset ( $_SERVER['SCRIPT_NAME'] ) ) { $t_host = 'localhost'; } + $t_path = str_replace( basename( $_SERVER['PHP_SELF'] ), '', $_SERVER['PHP_SELF'] ); $t_path = basename( $t_path ) == "admin" ? dirname( $t_path ) . DIRECTORY_SEPARATOR : $t_path; $t_url = $t_protocol . '://' . $t_host . $t_path; ----------------------------------------------------------------------- -- Mantis Bug Tracker |