Skip to content

Commit e2f30f7

Browse files
committedSep 4, 2011
Remove unreachable code branch in config_defaults_inc.php
Commit 57c9448 introduced an unreachable code branch that has no effect. Removed. The functionality will likely need to be rechecked by Paul/John to see whether we do want to use PHP_SELF.
1 parent 92b5b05 commit e2f30f7

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed
 

‎config_defaults_inc.php

+1-6
Original file line numberDiff line numberDiff line change
@@ -126,12 +126,7 @@
126126
$t_host = 'localhost';
127127
}
128128

129-
if( isset( $_SERVER['SCRIPT_NAME'] ) ) {
130-
$t_self = $_SERVER['SCRIPT_NAME'];
131-
} else {
132-
$t_self = $_SERVER['PHP_SELF'];
133-
}
134-
129+
$t_self = $_SERVER['SCRIPT_NAME'];
135130
$t_self = filter_var($t_self, FILTER_SANITIZE_STRING);
136131
$t_path = str_replace( basename( $t_self ), '', $t_self );
137132
$t_path = basename( $t_path ) == "admin" ? rtrim( dirname( $t_path ), '/\\' ) . '/' : $t_path;

0 commit comments

Comments
 (0)