Unused variables in Routing removed

This commit is contained in:
evilbloodydemon 2011-04-22 23:52:42 +04:00
parent ad73c7038c
commit 3c9cb3b97d
3 changed files with 4 additions and 5 deletions

View file

@ -299,7 +299,6 @@ class Dispatcher {
include WWW_ROOT . DS . $filters['js'];
return true;
}
$controller = null;
$pathSegments = explode('.', $url);
$ext = array_pop($pathSegments);
$parts = explode('/', $url);

View file

@ -399,7 +399,7 @@ class CakeRoute {
$greedyNamed = $namedConfig['greedyNamed'];
$allowedNamedParams = $namedConfig['rules'];
$named = $pass = $_query = array();
$named = $pass = array();
foreach ($url as $key => $value) {

View file

@ -487,7 +487,7 @@ class Router {
'named' => array()
);
$r = $ext = null;
$ext = null;
if ($url && strpos($url, '/') !== 0) {
$url = '/' . $url;
@ -771,7 +771,7 @@ class Router {
* @return string Full translated URL with base path.
*/
public static function url($url = null, $full = false) {
$defaults = $params = array('plugin' => null, 'controller' => null, 'action' => 'index');
$params = array('plugin' => null, 'controller' => null, 'action' => 'index');
if (is_bool($full)) {
$escape = false;
@ -792,7 +792,7 @@ class Router {
}
$base = $path['base'];
$extension = $output = $mapped = $q = $frag = null;
$extension = $output = $q = $frag = null;
if (empty($url)) {
$output = isset($path['here']) ? $path['here'] : '/';