Revert "Merge pull request #45 from joeytrapp/router-reverse"

This reverts commit eb1e040ae9, reversing
changes made to e53407c595.
This commit is contained in:
mark_story 2011-05-10 20:46:18 -04:00
parent eb1e040ae9
commit f65cf55f4f
2 changed files with 2 additions and 13 deletions

View file

@ -1060,7 +1060,7 @@ class Router {
* @access public
* @static
*/
function reverse($params, $full = false) {
function reverse($params) {
$pass = $params['pass'];
$named = $params['named'];
$url = $params['url'];
@ -1072,7 +1072,7 @@ class Router {
if (!empty($url)) {
$params['?'] = $url;
}
return Router::url($params, $full);
return Router::url($params);
}
/**

View file

@ -2147,17 +2147,6 @@ class RouterTest extends CakeTestCase {
);
$result = Router::reverse($params);
$this->assertEqual($result, '/eng/posts/view/1?foo=bar&baz=quu');
$params = array(
'lang' => 'eng',
'controller' => 'posts',
'action' => 'view',
'pass' => array(1),
'named' => array(),
'url' => array('url' => 'eng/posts/view/1')
);
$result = Router::reverse($params, true);
$this->assertPattern('/^http(s)?:\/\//', $result);
}
}