Warning: Cannot modify header information - headers already sent by (output started at /var/www/jonas-eriksen.dk/pic/private/index.php:1) in /var/www/jonas-eriksen.dk/pic/private/index.php on line 215
smileys = $smileys;
}
/** @inheritdoc */
public function preConnect()
{
if (!count($this->smileys) || $this->pattern != '') return;
$sep = '';
foreach ($this->smileys as $smiley) {
$this->pattern .= $sep.'(?<=\W|^)'. Lexer::escape($smiley).'(?=\W|$)';
$sep = '|';
}
}
/** @inheritdoc */
public function connectTo($mode)
{
if (!count($this->smileys)) return;
if (strlen($this->pattern) > 0) {
$this->Lexer->addSpecialPattern($this->pattern, $mode, 'smiley');
}
}
/** @inheritdoc */
public function getSort()
{
return 230;
}
}