diff --git a/system/libs/pot/OTS.php b/system/libs/pot/OTS.php index a90c6cfd..09b4f300 100644 --- a/system/libs/pot/OTS.php +++ b/system/libs/pot/OTS.php @@ -313,13 +313,15 @@ class POT { if( preg_match('/^(I|E_)?OTS_/', $class) > 0) { global $hooks; - $include = $this->path . $class . '.php'; - $args = ['include' => $include, 'class' => $class]; - $hooks->triggerFilter(HOOK_FILTER_POT, $args); + if (isset($hooks)) { + $args = ['include' => $include, 'class' => $class]; + $hooks->triggerFilter(HOOK_FILTER_POT, $args); + + $include = $args['include']; + } - $include = $args['include']; include_once($include); } }