Skip to content

Commit

Permalink
Set page property
Browse files Browse the repository at this point in the history
  • Loading branch information
kasimi committed Aug 4, 2017
1 parent 31839a1 commit b81a0d3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions kasimi/postnumbers/event/listener.php
Expand Up @@ -96,11 +96,13 @@ static public function getSubscribedEvents()
/**
* Prepare template data
*
* @param string $mode
* @param string $page
*/
protected function init($mode)
protected function init($page)
{
$this->is_active = $this->cfg('enabled.' . $mode) && !$this->user->data['is_bot'];
$this->page = $page;

$this->is_active = $this->cfg('enabled.' . $page) && !$this->user->data['is_bot'];

if (!$this->is_active)
{
Expand Down

0 comments on commit b81a0d3

Please sign in to comment.