Changeset 2184
- Timestamp:
- 02/28/2008 12:04:44 PM (7 months ago)
- Files:
-
- 1 modified
-
trunk/system/libraries/URI.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/libraries/URI.php
r2182 r2184 245 245 */ 246 246 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; 252 250 } 253 251 … … 258 256 */ 259 257 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; 265 261 } 266 262 … … 271 267 */ 272 268 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; 278 272 } 279 273
