From 403eed7db511ed2b40a0b6576eea9fc446fd4279 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Sat, 3 Dec 2022 17:10:16 +0100 Subject: [PATCH] fix autoload --- _prepend.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/_prepend.php b/_prepend.php index ae878f7..d9f310d 100644 --- a/_prepend.php +++ b/_prepend.php @@ -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']);