From 3efbb7b4af91654228a499fd296dd0a28464ffe8 Mon Sep 17 00:00:00 2001 From: Llewellyn van der Merwe Date: Tue, 1 Mar 2016 21:02:04 +0200 Subject: [PATCH] Refactoring of the compiler continues. --- admin/helpers/compiler/{get.php => aGet.php} | 0 admin/helpers/compiler/{structure.php => bStructure.php} | 0 admin/helpers/compiler/{fields.php => cFields.php} | 0 .../compiler/{interpretation.php => eInterpretation.php} | 0 admin/helpers/compiler/{infusion.php => fInfusion.php} | 0 admin/helpers/componentbuilder.php | 8 ++++---- 6 files changed, 4 insertions(+), 4 deletions(-) rename admin/helpers/compiler/{get.php => aGet.php} (100%) rename admin/helpers/compiler/{structure.php => bStructure.php} (100%) rename admin/helpers/compiler/{fields.php => cFields.php} (100%) rename admin/helpers/compiler/{interpretation.php => eInterpretation.php} (100%) rename admin/helpers/compiler/{infusion.php => fInfusion.php} (100%) diff --git a/admin/helpers/compiler/get.php b/admin/helpers/compiler/aGet.php similarity index 100% rename from admin/helpers/compiler/get.php rename to admin/helpers/compiler/aGet.php diff --git a/admin/helpers/compiler/structure.php b/admin/helpers/compiler/bStructure.php similarity index 100% rename from admin/helpers/compiler/structure.php rename to admin/helpers/compiler/bStructure.php diff --git a/admin/helpers/compiler/fields.php b/admin/helpers/compiler/cFields.php similarity index 100% rename from admin/helpers/compiler/fields.php rename to admin/helpers/compiler/cFields.php diff --git a/admin/helpers/compiler/interpretation.php b/admin/helpers/compiler/eInterpretation.php similarity index 100% rename from admin/helpers/compiler/interpretation.php rename to admin/helpers/compiler/eInterpretation.php diff --git a/admin/helpers/compiler/infusion.php b/admin/helpers/compiler/fInfusion.php similarity index 100% rename from admin/helpers/compiler/infusion.php rename to admin/helpers/compiler/fInfusion.php diff --git a/admin/helpers/componentbuilder.php b/admin/helpers/componentbuilder.php index 7747bc6b7..e3945fa33 100644 --- a/admin/helpers/componentbuilder.php +++ b/admin/helpers/componentbuilder.php @@ -39,10 +39,10 @@ abstract class ComponentbuilderHelper public static function autoLoader() { // load the compiler classes - require_once JPATH_ADMINISTRATOR.'/components/com_componentbuilder/helpers/get.php'; - require_once JPATH_ADMINISTRATOR.'/components/com_componentbuilder/helpers/structure.php'; - require_once JPATH_ADMINISTRATOR.'/components/com_componentbuilder/helpers/interpretation.php'; - require_once JPATH_ADMINISTRATOR.'/components/com_componentbuilder/helpers/infusion.php'; + foreach (glob(JPATH_ADMINISTRATOR."/components/com_componentbuilder/helpers/compiler/*.php") as $compilerFile) + { + require_once $compilerFile; + } // import the Joomla librarys jimport('joomla.filesystem.file'); jimport('joomla.filesystem.folder');