From 06d3ffaa1305354e4551fdc93c141123d229b464 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Sat, 3 Dec 2022 16:48:49 +0100 Subject: [PATCH] fix autoload --- _prepend.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/_prepend.php b/_prepend.php index 1b0ec91..775b4ae 100644 --- a/_prepend.php +++ b/_prepend.php @@ -14,8 +14,8 @@ if (!defined('DC_RC_PATH')) { return null; } -$d = dirname(__FILE__) . '/inc/'; - -$__autoload['postWidgetText'] = $d . 'class.postwidgettext.php'; -$__autoload['adminPostWidgetText'] = $d . 'lib.pwt.admin.php'; -$__autoload['listPostWidgetText'] = $d . 'lib.pwt.list.php'; +Clearbricks::lib()->autoload([ + 'postWidgetText' => __DIR__ . '/inc/class.postwidgettext.php', + 'adminPostWidgetText' => __DIR__ . '/inc/lib.pwt.admin.php', + 'listPostWidgetText' => __DIR__ . '/inc/lib.pwt.list.php', +]);