From 275d73840dcc69c0daabe988b1cbc6c6597ff861 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Fri, 25 Nov 2022 23:15:31 +0100 Subject: [PATCH] fix missing dcCore for _resources --- locales/en/resources.php | 4 +--- locales/fr/resources.php | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/locales/en/resources.php b/locales/en/resources.php index 98d6d69..a254f38 100644 --- a/locales/en/resources.php +++ b/locales/en/resources.php @@ -13,6 +13,4 @@ if (!defined('DC_RC_PATH')) { return; } -if (!isset($__resources['help']['dcAdvancedCleaner'])) { - $__resources['help']['dcAdvancedCleaner'] = dirname(__FILE__) . '/help/dcAdvancedCleaner.html'; -} +dcCore::app()->resources['help']['dcAdvancedCleaner'] = __DIR__ . '/help/dcAdvancedCleaner.html'; diff --git a/locales/fr/resources.php b/locales/fr/resources.php index 98d6d69..a254f38 100644 --- a/locales/fr/resources.php +++ b/locales/fr/resources.php @@ -13,6 +13,4 @@ if (!defined('DC_RC_PATH')) { return; } -if (!isset($__resources['help']['dcAdvancedCleaner'])) { - $__resources['help']['dcAdvancedCleaner'] = dirname(__FILE__) . '/help/dcAdvancedCleaner.html'; -} +dcCore::app()->resources['help']['dcAdvancedCleaner'] = __DIR__ . '/help/dcAdvancedCleaner.html';