From e36867163693268831364b04e98b0426aaa6308e Mon Sep 17 00:00:00 2001 From: Carsten Brandt Date: Tue, 19 Nov 2013 09:43:05 +0100 Subject: [PATCH] changed magic property to getter call in Pagination issue #1228 --- framework/yii/data/Pagination.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/yii/data/Pagination.php b/framework/yii/data/Pagination.php index dc75294..6a85dd2 100644 --- a/framework/yii/data/Pagination.php +++ b/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); }