function preConnect() { if (!count($this->entities)) { return; } $sep = ''; // Nux: fix for potential pattern overflow... $this->pattern = ''; foreach ($this->entities as $entity) { $this->pattern .= $sep . Doku_Lexer_Escape($entity); $sep = '|'; } }
function preConnect() { if (!count($this->entities) || $this->pattern != '') { return; } $sep = ''; foreach ($this->entities as $entity) { $this->pattern .= $sep . Doku_Lexer_Escape($entity); $sep = '|'; } }
function preConnect() { $sep = ''; foreach ($this->entities as $entity) { $this->pattern .= $sep . Doku_Lexer_Escape($entity); $sep = '|'; } }