Skip to content

Commit 5ef9c11

Browse files
committed
Use local config var
1 parent d56239e commit 5ef9c11

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Controller/Component/ApiPaginationComponent.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ public function beforeRender(Event $event)
6666
$this->setVisibility();
6767
}
6868

69-
$controller->set($this->config('key'), $this->pagingInfo);
70-
$controller->viewVars['_serialize'][] = $this->config('key');
69+
$controller->set($config['key'], $this->pagingInfo);
70+
$controller->viewVars['_serialize'][] = $config['key'];
7171
}
7272

7373
/**

0 commit comments

Comments
 (0)