Browse files

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

This reverts commit eb1e040, reversing
changes made to e53407c.
  • Loading branch information...
1 parent eb1e040 commit f65cf55f4fac223dff659f2fd65353fa356e9361 @markstory markstory committed May 10, 2011
Showing with 2 additions and 13 deletions.
  1. +2 −2 cake/libs/router.php
  2. +0 −11 cake/tests/cases/libs/router.test.php
View
4 cake/libs/router.php
@@ -1060,7 +1060,7 @@ function queryString($q, $extra = array(), $escape = false) {
* @access public
* @static
*/
- function reverse($params, $full = false) {
+ function reverse($params) {
$pass = $params['pass'];
$named = $params['named'];
$url = $params['url'];
@@ -1072,7 +1072,7 @@ function reverse($params, $full = false) {
if (!empty($url)) {
$params['?'] = $url;
}
- return Router::url($params, $full);
+ return Router::url($params);
}
/**
View
11 cake/tests/cases/libs/router.test.php
@@ -2147,17 +2147,6 @@ function testRouterReverse() {
);
$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);
}
}

0 comments on commit f65cf55

Please sign in to comment.