From eea5bd05bd06d29a3a2ba50c543ab94102cf5b5a Mon Sep 17 00:00:00 2001 From: php-nik Date: Tue, 31 Jan 2017 07:54:44 +0300 Subject: [PATCH] fix bug #143 --- Decoda/Hook/EmoticonHook.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(); }