mirror of
https://github.com/slawkens/myaac.git
synced 2025-06-03 19:34:30 +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) {
|
if( preg_match('/^(I|E_)?OTS_/', $class) > 0) {
|
||||||
global $hooks;
|
global $hooks;
|
||||||
|
|
||||||
$include = $this->path . $class . '.php';
|
$include = $this->path . $class . '.php';
|
||||||
|
|
||||||
$args = ['include' => $include, 'class' => $class];
|
if (isset($hooks)) {
|
||||||
$hooks->triggerFilter(HOOK_FILTER_POT, $args);
|
$args = ['include' => $include, 'class' => $class];
|
||||||
|
$hooks->triggerFilter(HOOK_FILTER_POT, $args);
|
||||||
|
|
||||||
|
$include = $args['include'];
|
||||||
|
}
|
||||||
|
|
||||||
$include = $args['include'];
|
|
||||||
include_once($include);
|
include_once($include);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user