Skip to content

Commit

Permalink
Fix derp with sprintf.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Jul 4, 2012
1 parent 337f68a commit 6defae0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/Cake/Routing/RouteCollection.php
Expand Up @@ -81,14 +81,14 @@ protected function _getNames($url) {
$plugin = $url['plugin'];
}
$fallbacks = array(
'%2s::%3s',
'%2s::_action',
'%2$s::%3$s',
'%2$s::_action',
'_controller::_action'
);
if ($plugin) {
$fallbacks = array(
'%1s.%2s::%3s',
'%1s.%2s::_action',
'%1$s.%2$s::%3$s',
'%1$s.%2$s::_action',
'_controller::_action'
);
}
Expand Down

0 comments on commit 6defae0

Please sign in to comment.