$this->readObjects();
}
- $articleIDs = [];
foreach ($this->getObjects() as $article) {
- $articleIDs[] = $article->articleID;
VisitTracker::getInstance()->trackObjectVisit('com.woltlab.wcf.article', $article->articleID, $this->parameters['visitTime']);
}
MessageEmbeddedObjectManager::getInstance()->setActiveMessage($objectType, $objectID);
$this->setContext($objectType, $objectID);
- return preg_replace_callback($this->regexHandlers, function ($matches) use ($objectType, $objectID) {
+ return preg_replace_callback($this->regexHandlers, function ($matches) {
$data = $this->parseAttributes($matches[1]);
return $this->replaceTag($data);