From 28c404f4cdb49a22cfdcd55c58c62169b375d276 Mon Sep 17 00:00:00 2001 From: TLWebdesign Date: Tue, 4 May 2021 22:34:23 +0200 Subject: [PATCH 1/2] Typo fixes --- admin/helpers/compiler/b_Structure.php | 4 ++-- admin/helpers/compiler/c_Fields.php | 2 +- admin/views/compiler/view.html.php | 4 ++-- site/helpers/componentbuilder.php | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/admin/helpers/compiler/b_Structure.php b/admin/helpers/compiler/b_Structure.php index 908cf3075..97b5cfc53 100644 --- a/admin/helpers/compiler/b_Structure.php +++ b/admin/helpers/compiler/b_Structure.php @@ -2099,12 +2099,12 @@ class Structure extends Get // set message that this was done (will still add a tutorial link later) $this->app->enqueueMessage( JText::_( - '

Dynamic folder/s were detected.

' + '

Dynamic folders were detected.

' ), 'Notice' ); $this->app->enqueueMessage( JText::sprintf( - 'A method (setDynamicF0ld3rs) was added to the install script.php of this package to insure that the folder/s are copied into the correct place when this componet is installed!' + 'A method (setDynamicF0ld3rs) was added to the install script.php of this package to insure that the folders are copied into the correct place when this component is installed!' ), 'Notice' ); } diff --git a/admin/helpers/compiler/c_Fields.php b/admin/helpers/compiler/c_Fields.php index 830ad7254..5bcc423ec 100644 --- a/admin/helpers/compiler/c_Fields.php +++ b/admin/helpers/compiler/c_Fields.php @@ -6135,7 +6135,7 @@ class Fields extends Structure { $fieldData['component'] = $local_component; } - // check that the componet has the com_ value in it + // check that the component has the com_ value in it if (strpos($fieldData['component'], 'com_') === false || strpos( $fieldData['component'], '=' diff --git a/admin/views/compiler/view.html.php b/admin/views/compiler/view.html.php index d9b0fa706..8cea877b5 100644 --- a/admin/views/compiler/view.html.php +++ b/admin/views/compiler/view.html.php @@ -184,9 +184,9 @@ class ComponentbuilderViewCompiler extends JViewLegacy $options = array(); $options[''] = 'COM_COMPONENTBUILDER__SELECT_COMPONENT_'; // load component options from array - foreach($this->Components as $componet) + foreach($this->Components as $component) { - $options[(int) $componet->id] = $this->escape($componet->name); + $options[(int) $component->id] = $this->escape($component->name); } // add to form $form[] = ComponentbuilderHelper::getFieldObject($attributes, '', $options); diff --git a/site/helpers/componentbuilder.php b/site/helpers/componentbuilder.php index 1c54be7cb..152ee23fe 100644 --- a/site/helpers/componentbuilder.php +++ b/site/helpers/componentbuilder.php @@ -1113,7 +1113,7 @@ abstract class ComponentbuilderHelper { // we must first store the current woking directory $joomla = getcwd(); - // we are changing the working directory to the componet path + // we are changing the working directory to the component path chdir($folder); // make sure we have file type filter if (self::checkArray($fileTypes)) -- 2.40.1 From 30ff3fd2bdee797176fd1bc1e8760d99f0fcda24 Mon Sep 17 00:00:00 2001 From: TLWebdesign Date: Tue, 4 May 2021 23:36:19 +0200 Subject: [PATCH 2/2] Update b_Structure.php --- admin/helpers/compiler/b_Structure.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/helpers/compiler/b_Structure.php b/admin/helpers/compiler/b_Structure.php index 97b5cfc53..ca890ab61 100644 --- a/admin/helpers/compiler/b_Structure.php +++ b/admin/helpers/compiler/b_Structure.php @@ -2099,12 +2099,12 @@ class Structure extends Get // set message that this was done (will still add a tutorial link later) $this->app->enqueueMessage( JText::_( - '

Dynamic folders were detected.

' + '

Dynamic folder(s) were detected.

' ), 'Notice' ); $this->app->enqueueMessage( JText::sprintf( - 'A method (setDynamicF0ld3rs) was added to the install script.php of this package to insure that the folders are copied into the correct place when this component is installed!' + 'A method (setDynamicF0ld3rs) was added to the install script.php of this package to insure that the folder(s) are copied into the correct place when this component is installed!' ), 'Notice' ); } -- 2.40.1