Skip to content

Commit

Permalink
Added missing function which was accidentally removed with the last u…
Browse files Browse the repository at this point in the history
…pdate
  • Loading branch information
hschottm committed Jan 8, 2016
1 parent 0521ef2 commit 9a2c160
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions modules/ModuleEventlistTags.php
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,31 @@ protected function compile()
////////// CHANGES BY ModuleEventlistTags
}

/**
* Read tags from database
* @return string
*/
protected function getFilterTags()
{
if (strlen($this->tag_filter))
{
$tags = preg_split("/,/", $this->tag_filter);
$placeholders = array();
foreach ($tags as $tag)
{
array_push($placeholders, '?');
}
array_push($tags, 'tl_calendar_events');
return $this->Database->prepare("SELECT tid FROM tl_tag WHERE tag IN (" . join($placeholders, ',') . ") AND from_table = ? ORDER BY tag ASC")
->execute($tags)
->fetchEach('tid');
}
else
{
return array();
}
}

}

?>

0 comments on commit 9a2c160

Please sign in to comment.