Changeset 120 for trunk/trax/vendor/trax/action_view
- Timestamp:
- 01/18/06 19:46:47 (6 years ago)
- Files:
-
- 1 modified
-
trunk/trax/vendor/trax/action_view/helpers.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/trax/vendor/trax/action_view/helpers.php
r119 r120 72 72 $url[] = $options; 73 73 } else { 74 $url_base = $_SERVER['HTTP_HOST']; 75 if(substr($url_base, -1) == "/") { 76 # remove the ending slash 77 $url_base = substr($url_base, 0, -1); 78 } 79 74 80 if($_SERVER['SERVER_PORT'] == 443) { 75 $url_base = "https://".$ _SERVER['HTTP_HOST'];81 $url_base = "https://".$url_base; 76 82 } else { 77 $url_base = "http://".$ _SERVER['HTTP_HOST'];83 $url_base = "http://".$url_base; 78 84 } 85 if(!is_null(TRAX_URL_PREFIX)) { 86 $url_base .= "/".TRAX_URL_PREFIX; 87 } 88 79 89 if(array_key_exists(":controller", $options)) { 80 90 if($controller = $options[":controller"]) {
