Commit 5a1702e7 by artur

Refactor

parent 94e2f7fc
...@@ -59,6 +59,7 @@ Yii Framework 2 Change Log ...@@ -59,6 +59,7 @@ Yii Framework 2 Change Log
- Enh: Added `all` option to `MigrateController::actionDown()` action (creocoder, umneeq) - Enh: Added `all` option to `MigrateController::actionDown()` action (creocoder, umneeq)
- Enh: Added support for array attributes in `exist` validator (creocoder) - Enh: Added support for array attributes in `exist` validator (creocoder)
- Enh: Added support for using path alias with `FileDependency::fileName` (qiangxue) - Enh: Added support for using path alias with `FileDependency::fileName` (qiangxue)
- Enh: Added param `hideOnSinglePage` to `yii\widgets\LinkPager` (arturf)
- Chg #2913: RBAC `DbManager` is now initialized via migration (samdark) - Chg #2913: RBAC `DbManager` is now initialized via migration (samdark)
- Chg #3036: Upgraded Twitter Bootstrap to 3.1.x (qiangxue) - Chg #3036: Upgraded Twitter Bootstrap to 3.1.x (qiangxue)
- Chg #3175: InvalidCallException, InvalidParamException, UnknownMethodException are now extended from SPL BadMethodCallException (samdark) - Chg #3175: InvalidCallException, InvalidParamException, UnknownMethodException are now extended from SPL BadMethodCallException (samdark)
......
...@@ -99,9 +99,9 @@ class LinkPager extends Widget ...@@ -99,9 +99,9 @@ class LinkPager extends Widget
*/ */
public $registerLinkTags = false; public $registerLinkTags = false;
/** /**
* @var boolean Render widget when only one page exist. Defaults to `false`. * @var boolean Hide widget when only one page exist. Defaults to `false`.
*/ */
public $renderOnSinglePage = false; public $hideOnSinglePage = false;
/** /**
* Initializes the pager. * Initializes the pager.
...@@ -145,7 +145,7 @@ class LinkPager extends Widget ...@@ -145,7 +145,7 @@ class LinkPager extends Widget
protected function renderPageButtons() protected function renderPageButtons()
{ {
$pageCount = $this->pagination->getPageCount(); $pageCount = $this->pagination->getPageCount();
if ($pageCount < 2 && !$this->renderOnSinglePage) { if ($pageCount < 2 && $this->hideOnSinglePage) {
return ''; return '';
} }
......
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