From 5e42dd1f70356c6b6cff69dd4c60abc725454c6e Mon Sep 17 00:00:00 2001 From: aB0t Date: Thu, 25 Apr 2024 17:47:04 +0200 Subject: [PATCH] update 2024-04-25 17:46:59 --- src/6e64917c-d687-4ef3-a655-811319f5a81e/code.php | 6 +++--- src/6e64917c-d687-4ef3-a655-811319f5a81e/code.power | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/6e64917c-d687-4ef3-a655-811319f5a81e/code.php b/src/6e64917c-d687-4ef3-a655-811319f5a81e/code.php index 528ae6b..d0d96b6 100644 --- a/src/6e64917c-d687-4ef3-a655-811319f5a81e/code.php +++ b/src/6e64917c-d687-4ef3-a655-811319f5a81e/code.php @@ -111,7 +111,7 @@ class Autoloader // make sure we only load this once if (ArrayHelper::check($this->power->namespace) && !$this->content->isString('ADMIN_POWER_HELPER')) { - /** *********************** IMPORTANT SORT NOTICE *********************************************** + /* ********************** IMPORTANT SORT NOTICE ***************************************** * make sure the name space values are sorted from the longest string to the shortest * so that the search do not mistakenly match a shorter namespace before a longer one * that has the same short namespace for example: @@ -186,8 +186,8 @@ class Autoloader // we start building the autoloaded file loader $autoload_file = []; $autoload_file[] = Indent::_($tabSpace) . '//' - . Line::_(__Line__, __Class__) . ' The power autoloader for this project admin area.'; - $autoload_file[] = Indent::_($tabSpace) . "\$power_autoloader = $area . '/componenents/com_" + . Line::_(__Line__, __Class__) . " The power autoloader for this project ($area) area."; + $autoload_file[] = Indent::_($tabSpace) . "\$power_autoloader = $area . '/components/com_" . $this->config->get('component_code_name', 'ERROR') . '/' . $this->config->get('component_autoloader_path', 'ERROR') . "';"; $autoload_file[] = Indent::_($tabSpace) . 'if (file_exists($power_autoloader))'; diff --git a/src/6e64917c-d687-4ef3-a655-811319f5a81e/code.power b/src/6e64917c-d687-4ef3-a655-811319f5a81e/code.power index af48377..247939b 100644 --- a/src/6e64917c-d687-4ef3-a655-811319f5a81e/code.power +++ b/src/6e64917c-d687-4ef3-a655-811319f5a81e/code.power @@ -82,7 +82,7 @@ // make sure we only load this once if (ArrayHelper::check($this->power->namespace) && !$this->content->isString('ADMIN_POWER_HELPER')) { - /** *********************** IMPORTANT SORT NOTICE *********************************************** + /* ********************** IMPORTANT SORT NOTICE ***************************************** * make sure the name space values are sorted from the longest string to the shortest * so that the search do not mistakenly match a shorter namespace before a longer one * that has the same short namespace for example: @@ -157,8 +157,8 @@ // we start building the autoloaded file loader $autoload_file = []; $autoload_file[] = Indent::_($tabSpace) . '//' - . Line::_(__Line__, __Class__) . ' The power autoloader for this project admin area.'; - $autoload_file[] = Indent::_($tabSpace) . "\$power_autoloader = $area . '/componenents/com_" + . Line::_(__Line__, __Class__) . " The power autoloader for this project ($area) area."; + $autoload_file[] = Indent::_($tabSpace) . "\$power_autoloader = $area . '/components/com_" . $this->config->get('component_code_name', 'ERROR') . '/' . $this->config->get('component_autoloader_path', 'ERROR') . "';"; $autoload_file[] = Indent::_($tabSpace) . 'if (file_exists($power_autoloader))';