1.2: router fix for plugins in url()

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3731 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
gwoo 2006-10-20 21:58:43 +00:00
parent da2cf11ef3
commit 8b680a0107

View file

@ -360,9 +360,9 @@ class Router extends Overloadable {
function url($url = null, $full = false) {
$_this =& Router::getInstance();
$params = $_this->__params[0];
$path = $_this->__paths[0];
$base = strip_plugin($path['base'], $path['plugin']);
$params = isset($_this->__params[0]) ? $_this->__params[0] : null;
$path = isset($_this->__paths[0]) ? $_this->__paths[0] : null;
$base = strip_plugin($path['base'], $params['plugin']);
$extension = null;
$mapped = null;