From 1b8d5b7d15b24cf68fc12b3bc225ff10e78a610b Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Thu, 30 Nov 2006 22:07:50 +1300 Subject: [PATCH] Fix locale handling in subdirectory operation. --- inc/always.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/always.php b/inc/always.php index e9d82a6e..89a01780 100644 --- a/inc/always.php +++ b/inc/always.php @@ -49,9 +49,9 @@ $c->protocol_server_port_script = sprintf( "%s://%s%s%s", (isset($_SERVER['HTTPS ), $_SERVER['SCRIPT_NAME'] ); -dbg_error_log( "LOG", "==========> method =%s= =%s= =%s= =%s=", $_SERVER['REQUEST_METHOD'], $c->protocol_server_port_script, $_SERVER['PATH_INFO'], $c->base_url ); +dbg_error_log( "LOG", "==========> method =%s= =%s= =%s= =%s= =%s=", $_SERVER['REQUEST_METHOD'], $c->protocol_server_port_script, $_SERVER['PATH_INFO'], $c->base_url, $c->base_directory ); -init_gettext( 'rscds', $c->base_directory.'/locale' ); +init_gettext( 'rscds', '../locale' ); if ( file_exists("/etc/rscds/".$_SERVER['SERVER_NAME']."-conf.php") ) { include_once("/etc/rscds/".$_SERVER['SERVER_NAME']."-conf.php");