Skip to content

Commit

Permalink
Fix issue with missing prefixes when they are declared via Configure.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Sep 25, 2012
1 parent 83afcb1 commit d49c43f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/Cake/Routing/Router.php
Expand Up @@ -424,6 +424,9 @@ public static function mapResources($controller, $options = array()) {
* @return array A list of prefixes used in connected routes
*/
public static function prefixes() {
if (empty(static::$_prefixes)) {
return (array)Configure::read('Routing.prefixes');
}
return static::$_prefixes;
}

Expand Down

0 comments on commit d49c43f

Please sign in to comment.