diff --git a/Decoda/Hook/EmoticonHook.php b/Decoda/Hook/EmoticonHook.php index 37aef07..d4c2cd3 100644 --- a/Decoda/Hook/EmoticonHook.php +++ b/Decoda/Hook/EmoticonHook.php @@ -214,7 +214,9 @@ public function getMatcher() $cache->write($dumper->dump($options), $this->getEmoticonCollection()->getResources()); } - require_once $cacheFile; + if (!class_exists($class)) { + require_once $cacheFile; + } return $this->matcher = new $class(); }