mirror of
https://github.com/slawkens/myaac.git
synced 2025-12-15 05:19:47 +01:00
Compare commits
3 Commits
v1.8.6
...
feature/po
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
35a4fcdc90 | ||
|
|
adabaf1635 | ||
|
|
2a335328d2 |
@@ -311,9 +311,18 @@ class POT
|
||||
*/
|
||||
public function loadClass($class)
|
||||
{
|
||||
if( preg_match('/^(I|E_)?OTS_/', $class) > 0)
|
||||
{
|
||||
include_once($this->path . $class . '.php');
|
||||
if( preg_match('/^(I|E_)?OTS_/', $class) > 0) {
|
||||
global $hooks;
|
||||
$include = $this->path . $class . '.php';
|
||||
|
||||
if (isset($hooks)) {
|
||||
$args = ['include' => $include, 'class' => $class];
|
||||
$hooks->triggerFilter(HOOK_FILTER_POT, $args);
|
||||
|
||||
$include = $args['include'];
|
||||
}
|
||||
|
||||
include_once($include);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -108,6 +108,7 @@ define('HOOK_FILTER_ROUTES', ++$i);
|
||||
define('HOOK_FILTER_TWIG_DISPLAY', ++$i);
|
||||
define('HOOK_FILTER_TWIG_RENDER', ++$i);
|
||||
define('HOOK_FILTER_THEME_FOOTER', ++$i);
|
||||
define('HOOK_FILTER_POT', ++$i);
|
||||
define('HOOK_FILTER_VALIDATE_CHARACTER_NEW_NAME', ++$i);
|
||||
|
||||
const HOOK_FIRST = HOOK_INIT;
|
||||
|
||||
Reference in New Issue
Block a user