update 2024-04-25 17:46:59

This commit is contained in:
Robot 2024-04-25 17:47:04 +02:00
parent de1a49f601
commit 5e42dd1f70
Signed by: Robot
GPG Key ID: 14DECD44E7E1BB95
2 changed files with 6 additions and 6 deletions

View File

@ -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))';

View File

@ -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))';