Commit 423ce837 by Qiang Xue

adjusted log place.

parent 33f4a142
......@@ -197,6 +197,8 @@ class UrlManager extends Component
return false;
}
Yii::trace('No matching URL rules. Using default URL parsing logic.', __METHOD__);
$suffix = (string)$this->suffix;
if ($suffix !== '' && $pathInfo !== '') {
$n = strlen($this->suffix);
......@@ -212,14 +214,13 @@ class UrlManager extends Component
}
}
Yii::trace('No matching URL rules. Using default URL parsing logic.', __METHOD__);
return [$pathInfo, []];
} else {
Yii::trace('Pretty URL not enabled. Using default URL parsing logic.', __METHOD__);
$route = $request->get($this->routeVar);
if (is_array($route)) {
$route = '';
}
Yii::trace('Pretty URL not enabled. Using default URL parsing logic.', __METHOD__);
return [(string)$route, []];
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment