Browse Source

adjusted log place.

tags/2.0.0-beta
Qiang Xue 11 years ago
parent
commit
423ce83798
  1. 5
      framework/yii/web/UrlManager.php

5
framework/yii/web/UrlManager.php

@ -197,6 +197,8 @@ class UrlManager extends Component
return false; return false;
} }
Yii::trace('No matching URL rules. Using default URL parsing logic.', __METHOD__);
$suffix = (string)$this->suffix; $suffix = (string)$this->suffix;
if ($suffix !== '' && $pathInfo !== '') { if ($suffix !== '' && $pathInfo !== '') {
$n = strlen($this->suffix); $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, []]; return [$pathInfo, []];
} else { } else {
Yii::trace('Pretty URL not enabled. Using default URL parsing logic.', __METHOD__);
$route = $request->get($this->routeVar); $route = $request->get($this->routeVar);
if (is_array($route)) { if (is_array($route)) {
$route = ''; $route = '';
} }
Yii::trace('Pretty URL not enabled. Using default URL parsing logic.', __METHOD__);
return [(string)$route, []]; return [(string)$route, []];
} }
} }

Loading…
Cancel
Save