Skip to content

Commit

Permalink
Fix $t_path variable not found error from last commit
Browse files Browse the repository at this point in the history
The forward port of 782a7e0 was
incorrect as it removed a line of code that was essential. My bad!
  • Loading branch information
davidhicks committed May 18, 2010
1 parent 782a7e0 commit 8bf42a6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions config_defaults_inc.php
Expand Up @@ -126,6 +126,7 @@
$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;

Expand Down

0 comments on commit 8bf42a6

Please sign in to comment.