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;
}
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, []];
}
}

Loading…
Cancel
Save