corporate » labs » forge
E29 Incorporated

Changeset 3

Show
Ignore:
Timestamp:
08/11/08 11:18:35 (5 months ago)
Author:
akinder
Message:

Fixed #4

Location:
htdocs/core_layer
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • htdocs/core_layer/classes/output/sgen.parse/parse_url.php

    r1 r3  
    1 $PARSE['string'] = Serenity::get('base_app_url').'/'.$PARSE['args'][0]; 
     1if( $PARSE['args'][0][0] == '/' ) 
     2{ 
     3        $PARSE['args'][0] = @substr( $PARSE['args'][0], 1 ); 
     4} 
     5 
     6if( @strripos( Serenity::get('base_app_url'), '/' ) == ( @strlen( Serenity::get('base_app_url') ) -1 ) ) 
     7{ 
     8        $PARSE['string'] = Serenity::get('base_app_url').$PARSE['args'][0]; 
     9} 
     10else 
     11{ 
     12        $PARSE['string'] = Serenity::get('base_app_url').'/'.$PARSE['args'][0]; 
     13} 
    214 
    315if( ( !Serenity::user()->get('use_cookies') ) && Serenity::user()->is_logged_in() ) 
  • htdocs/core_layer/serenity.php

    r1 r3  
    420420                         
    421421                        $app_url = "http://{$Apps->bind_host}{$this->subs}"; 
    422                         $app_url .= ( $Apps->path_key != '*' ) ? $Apps->path_key.'/' : ''; 
    423                          
     422                        $app_url .= ( $Apps->path_key != '*' ) ? $Apps->path_key : ''; 
     423                 
    424424                        self::set( 'base_app_url', $app_url ); 
    425425                        self::set( 'base_action_url', $app_url . $Action->action_key );