Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove usage of obsolete option use_iis
The option use_iis has been obsoleted in commit
5b0fdc5
Some ports from master-1.2.x didn't consider the removal.
  • Loading branch information
atrol committed Oct 18, 2013
1 parent d4316ba commit b8b4134
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
2 changes: 1 addition & 1 deletion config_defaults_inc.php
Expand Up @@ -4249,4 +4249,4 @@


# Temporary variables should not remain defined in global scope
unset( $t_protocol, $t_host, $t_hosts, $t_port, $t_self, $t_path, $t_use_iis );
unset( $t_protocol, $t_host, $t_hosts, $t_port, $t_self, $t_path );
10 changes: 1 addition & 9 deletions core.php
Expand Up @@ -181,17 +181,9 @@ function __autoload( $className ) {
if ( strlen( $GLOBALS['g_mantistouch_url'] ) > 0 && mobile_is_mobile_browser() ) {
$t_url = sprintf( $GLOBALS['g_mantistouch_url'], $GLOBALS['g_path'] );

if ( OFF == $g_use_iis ) {
header( 'Status: 302' );
}

header( 'Content-Type: text/html' );

if ( ON == $g_use_iis ) {
header( "Refresh: 0;$t_url" );
} else {
header( "Location: $t_url" );
}
header( "Location: $t_url" );

exit; # additional output can cause problems so let's just stop output here
}
Expand Down

0 comments on commit b8b4134

Please sign in to comment.