From ba93fbac00414a0740d22d65dda984862433a30b Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Sat, 25 Sep 2021 17:38:22 +0200 Subject: [PATCH] fix public side undefined call --- _prepend.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/_prepend.php b/_prepend.php index 760a593..d900ae7 100644 --- a/_prepend.php +++ b/_prepend.php @@ -22,4 +22,6 @@ $__autoload['dcTranslaterModule'] = $d . 'class.dc.translater.module.php'; $__autoload['dcTranslaterLang'] = $d . 'class.dc.translater.lang.php'; $__autoload['translaterRest'] = $d . 'class.translater.rest.php'; -$core->adminurl->register('translater', 'plugin.php', ['p' => 'translater']); \ No newline at end of file +if (isset($core->adminurl)) { + $core->adminurl->register('translater', 'plugin.php', ['p' => 'translater']); +} \ No newline at end of file