Permalink
Browse files

removing unused variable, fixes #2227

  • Loading branch information...
1 parent bab6136 commit 7224de962e8008332c6a28d8ff2736ee7ea072bc @ceeram ceeram committed Nov 7, 2011
Showing with 2 additions and 5 deletions.
  1. +2 −5 lib/Cake/Routing/Router.php
@@ -820,7 +820,7 @@ public static function url($url = null, $full = false) {
* @see Router::url()
*/
protected static function _handleNoRoute($url) {
- $named = $args = $query = array();
+ $named = $args = array();
$skip = array_merge(
array('bare', 'action', 'controller', 'plugin', 'prefix'),
self::$_prefixes
@@ -847,7 +847,7 @@ protected static function _handleNoRoute($url) {
}
}
- if (empty($named) && empty($args) && empty($query) && (!isset($url['action']) || $url['action'] === 'index')) {
+ if (empty($named) && empty($args) && (!isset($url['action']) || $url['action'] === 'index')) {
$url['action'] = null;
}
@@ -881,9 +881,6 @@ protected static function _handleNoRoute($url) {
}
}
}
- if (!empty($query)) {
- $output .= Router::queryString($query);
- }
return $output;
}

0 comments on commit 7224de9

Please sign in to comment.