Slightly tweak the protocol_server_port to account for /

This commit is contained in:
Andrew McMillan 2007-11-04 11:25:45 +13:00
parent 1f57165ef8
commit c3943f3687
2 changed files with 6 additions and 2 deletions

View File

@ -49,7 +49,9 @@ $c->protocol_server_port_script = sprintf( "%s://%s%s%s", (isset($_SERVER['HTTPS
? ''
: ':'.$_SERVER['SERVER_PORT']
),
$_SERVER['SCRIPT_NAME'] );
($_SERVER['SCRIPT_NAME'] == '/index.php' ? '' : $_SERVER['SCRIPT_NAME']) );
$c->protocol_server_port_script = ($_SERVER['SCRIPT_NAME'] == '/index.php' ? '' : $_SERVER['SCRIPT_NAME']);
init_gettext( 'rscds', '../locale' );

View File

@ -49,7 +49,9 @@ $c->protocol_server_port_script = sprintf( "%s://%s%s%s", (isset($_SERVER['HTTPS
? ''
: ':'.$_SERVER['SERVER_PORT']
),
$_SERVER['SCRIPT_NAME'] );
($_SERVER['SCRIPT_NAME'] == '/index.php' ? '' : $_SERVER['SCRIPT_NAME']) );
$c->protocol_server_port_script = ($_SERVER['SCRIPT_NAME'] == '/index.php' ? '' : $_SERVER['SCRIPT_NAME']);
init_gettext( 'rscds', '../locale' );