Browse Source

changed magic property to getter call in Pagination

issue #1228
tags/2.0.0-alpha
Carsten Brandt 11 years ago
parent
commit
e368671636
  1. 2
      framework/yii/data/Pagination.php

2
framework/yii/data/Pagination.php

@ -182,7 +182,7 @@ class Pagination extends Object
} else {
unset($params[$this->pageVar]);
}
$route = $this->route === null ? Yii::$app->controller->route : $this->route;
$route = $this->route === null ? Yii::$app->controller->getRoute() : $this->route;
return Yii::$app->getUrlManager()->createUrl($route, $params);
}

Loading…
Cancel
Save