mirror of
https://github.com/slawkens/myaac.git
synced 2025-06-02 02:44:29 +02:00
Fix if $hooks not defined
This commit is contained in:
parent
2a335328d2
commit
adabaf1635
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user