fix autoload

This commit is contained in:
Jean-Christian Paul Denis 2022-12-03 17:10:16 +01:00
parent 5e8594a11f
commit 403eed7db5
Signed by: JcDenis
GPG Key ID: 1B5B8C5B90B6C951

View File

@ -14,13 +14,13 @@ if (!defined('DC_RC_PATH')) {
return;
}
$d = __DIR__ . '/inc/';
Clearbricks::lib()->autoload(['dcTranslater' => $d . 'class.dc.translater.php']);
Clearbricks::lib()->autoload(['dcTranslaterDefaultSettings' => $d . 'class.dc.translater.php']);
Clearbricks::lib()->autoload(['dcTranslaterModule' => $d . 'class.dc.translater.module.php']);
Clearbricks::lib()->autoload(['dcTranslaterLang' => $d . 'class.dc.translater.lang.php']);
Clearbricks::lib()->autoload(['translaterRest' => $d . 'class.translater.rest.php']);
Clearbricks::lib()->autoload([
'dcTranslater' => __DIR__ . '/inc/class.dc.translater.php',
'dcTranslaterDefaultSettings' => __DIR__ . '/inc/class.dc.translater.php',
'dcTranslaterModule' => __DIR__ . '/inc/class.dc.translater.module.php',
'dcTranslaterLang' => __DIR__ . '/inc/class.dc.translater.lang.php',
'translaterRest' => __DIR__ . '/class.translater.rest.php',
]);
if (isset(dcCore::app()->adminurl)) {
dcCore::app()->adminurl->register('translater', 'plugin.php', ['p' => 'translater']);