Show
Ignore:
Timestamp:
02/28/2008 12:04:44 PM (9 months ago)
Author:
gregmac
Message:

Fix styling in r2182

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/system/libraries/URI.php

    r2182 r2184  
    245245         */ 
    246246        public function controller_path($full = TRUE) { 
    247                 if ($full) 
    248                 { 
    249                         return url::site(self::$controller_path); 
    250                 } 
    251                 return self::$controller_path; 
     247                return ((bool) $full)  
     248                        ? url::site(self::$controller_path) 
     249                        : self::$controller_path; 
    252250        } 
    253251         
     
    258256         */ 
    259257        public function controller($full = TRUE) { 
    260                 if ($full) 
    261                 { 
    262                         return url::site(self::$controller_path.self::$controller); 
    263                 } 
    264                 return self::$controller; 
     258                return ((bool) $full)  
     259                        ? url::site(self::$controller_path.self::$controller) 
     260                        : self::$controller; 
    265261        } 
    266262         
     
    271267         */ 
    272268        public function method($full = TRUE) { 
    273                 if ($full) 
    274                 { 
    275                         return url::site(self::$controller_path.self::$controller.'/'.self::$method); 
    276                 } 
    277                 return self::$method; 
     269                return ((bool) $full)  
     270                        ? url::site(self::$controller_path.self::$controller.'/'.self::$method)  
     271                        : self::$method; 
    278272        } 
    279273