Commit e3686716 by Carsten Brandt

changed magic property to getter call in Pagination

issue #1228
parent cffb55a2
...@@ -182,7 +182,7 @@ class Pagination extends Object ...@@ -182,7 +182,7 @@ class Pagination extends Object
} else { } else {
unset($params[$this->pageVar]); 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); return Yii::$app->getUrlManager()->createUrl($route, $params);
} }
......
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