Changeset 207 for trunk/trax/vendor/trax

Show
Ignore:
Timestamp:
05/28/06 10:35:47 (6 years ago)
Author:
john
Message:

fixed references to TRAX_URL_PREFIX

Location:
trunk/trax/vendor/trax/action_view/helpers
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/trax/vendor/trax/action_view/helpers/asset_tag_helper.php

    r201 r207  
    8181            } 
    8282 
    83             //  If TRAX_URL_PREFIX non-null, prefix it to path 
     83            //  If Trax::$url_prefix non-null, prefix it to path 
    8484            if(!is_null(Trax::$url_prefix)) { 
    8585                $prefix = Trax::$url_prefix; 
  • trunk/trax/vendor/trax/action_view/helpers/url_helper.php

    r201 r207  
    233233                $url_base = "http://".$url_base; 
    234234            } 
    235             //  Insert value of TRAX_URL_PREFIX (must start with /) 
    236             if(!is_null(TRAX_URL_PREFIX)) { 
    237                 $url_base .= TRAX_URL_PREFIX; 
     235            //  Insert value of Trax::$url_prefix 
     236            if(!is_null(Trax::$url_prefix)) { 
     237                $prefix = Trax::$url_prefix; 
     238                if($prefix{0} != "/") { 
     239                    $prefix = "/$prefix"; 
     240                } 
     241                $url_base .= $prefix; 
    238242            } 
    239243