diff --git a/README.md b/README.md index 52c479f86..c09c7d233 100644 --- a/README.md +++ b/README.md @@ -140,11 +140,11 @@ TODO + *Author*: [Llewellyn van der Merwe](mailto:joomla@vdm.io) + *Name*: [Component Builder](https://git.vdm.dev/joomla/Component-Builder) + *First Build*: 30th April, 2015 -+ *Last Build*: 8th January, 2023 ++ *Last Build*: 15th January, 2023 + *Version*: 3.1.13 + *Copyright*: Copyright (C) 2015 Vast Development Method. All rights reserved. + *License*: GNU General Public License version 2 or later; see LICENSE.txt -+ *Line count*: **344993** ++ *Line count*: **345248** + *Field count*: **2009** + *File count*: **2240** + *Folder count*: **399** diff --git a/admin/README.txt b/admin/README.txt index 52c479f86..c09c7d233 100644 --- a/admin/README.txt +++ b/admin/README.txt @@ -140,11 +140,11 @@ TODO + *Author*: [Llewellyn van der Merwe](mailto:joomla@vdm.io) + *Name*: [Component Builder](https://git.vdm.dev/joomla/Component-Builder) + *First Build*: 30th April, 2015 -+ *Last Build*: 8th January, 2023 ++ *Last Build*: 15th January, 2023 + *Version*: 3.1.13 + *Copyright*: Copyright (C) 2015 Vast Development Method. All rights reserved. + *License*: GNU General Public License version 2 or later; see LICENSE.txt -+ *Line count*: **344993** ++ *Line count*: **345248** + *Field count*: **2009** + *File count*: **2240** + *Folder count*: **399** diff --git a/admin/helpers/compiler.php b/admin/helpers/compiler.php index 61915e6cc..8e577cba5 100644 --- a/admin/helpers/compiler.php +++ b/admin/helpers/compiler.php @@ -120,10 +120,12 @@ class Compiler extends Infusion ); $this->writeFile($xmlPath, $componentXML); } + // for plugin event TODO change event api signatures + $component_context = CFactory::_('Config')->component_context; // Trigger Event: jcb_ce_onBeforeUpdateFiles CFactory::_('Event')->trigger( 'jcb_ce_onBeforeUpdateFiles', - array(&$this->componentContext, &$this) + array(&$component_context, &$this) ); // now update the files if (!$this->updateFiles()) @@ -133,7 +135,7 @@ class Compiler extends Infusion // Trigger Event: jcb_ce_onBeforeGetCustomCode CFactory::_('Event')->trigger( 'jcb_ce_onBeforeGetCustomCode', - array(&$this->componentContext, &$this) + array(&$component_context, &$this) ); // now insert into the new files if (CFactory::_('Customcode')->get()) @@ -141,7 +143,7 @@ class Compiler extends Infusion // Trigger Event: jcb_ce_onBeforeAddCustomCode CFactory::_('Event')->trigger( 'jcb_ce_onBeforeAddCustomCode', - array(&$this->componentContext, &$this) + array(&$component_context, &$this) ); $this->addCustomCode(); @@ -149,7 +151,7 @@ class Compiler extends Infusion // Trigger Event: jcb_ce_onBeforeSetLangFileData CFactory::_('Event')->trigger( 'jcb_ce_onBeforeSetLangFileData', - array(&$this->componentContext, &$this) + array(&$component_context, &$this) ); // set the lang data now $this->setLangFileData(); @@ -216,13 +218,15 @@ class Compiler extends Infusion $message_fix['sql'] = JText::_( 'The SQL fix updates the #__assets table\'s column size on installation of the component and reverses it back to the Joomla default on uninstall of the component.' ); + // get the asset table fix switch + $add_assets_table_fix = CFactory::_('Config')->get('add_assets_table_fix', 0); // set assets table rules column notice - if (CFactory::_('Config')->add_assets_table_fix) + if ($add_assets_table_fix) { $this->app->enqueueMessage( JText::_('
componentCodeName . "_"
+ ) . " From the " . CFactory::_('Config')->component_code_name . "_"
. $nameSingleCode
. " table";
$query .= PHP_EOL . Indent::_(2) . "\$query->from(\$db->quoteName('#__"
- . $this->componentCodeName . "_" . $nameSingleCode . "', 'a'));";
+ . CFactory::_('Config')->component_code_name . "_" . $nameSingleCode . "', 'a'));";
// add the category
if ($addCategory)
{
@@ -14574,7 +14507,7 @@ class Interpretation extends Fields
. " Implement View Level Access";
$query .= PHP_EOL . Indent::_(2)
. "if (!\$user->authorise('core.options', 'com_"
- . $this->componentCodeName . "'))";
+ . CFactory::_('Config')->component_code_name . "'))";
$query .= PHP_EOL . Indent::_(2) . "{";
$query .= PHP_EOL . Indent::_(3)
. "\$groups = implode(',', \$user->getAuthorisedViewLevels());";
@@ -14961,7 +14894,7 @@ class Interpretation extends Fields
$method[] = Indent::_(2) . "\$user = JFactory::getUser();";
$method[] = Indent::_(2) . "if (\$user->authorise('"
. $custom_button['link'] . ".access', 'com_"
- . $this->componentCodeName . "'))";
+ . CFactory::_('Config')->component_code_name . "'))";
$method[] = Indent::_(2) . "{";
$method[] = Indent::_(3) . "//" . Line::_(__Line__, __Class__)
. " Get the input";
@@ -14978,7 +14911,7 @@ class Interpretation extends Fields
$method[] = Indent::_(3) . "\$ids = implode('_', \$pks);";
$method[] = Indent::_(3)
. "\$this->setRedirect(JRoute::_('index.php?option=com_"
- . $this->componentCodeName . "&view="
+ . CFactory::_('Config')->component_code_name . "&view="
. $custom_button['link'] . "&cid='.\$ids, false));";
$method[] = Indent::_(3) . "return;";
$method[] = Indent::_(2) . "}";
@@ -14989,7 +14922,7 @@ class Interpretation extends Fields
. "_FAILED');";
$method[] = Indent::_(2)
. "\$this->setRedirect(JRoute::_('index.php?option=com_"
- . $this->componentCodeName . "&view=" . $nameListCode
+ . CFactory::_('Config')->component_code_name . "&view=" . $nameListCode
. "', false), \$message, 'error');";
$method[] = Indent::_(2) . "return;";
$method[] = Indent::_(1) . "}";
@@ -15076,11 +15009,11 @@ class Interpretation extends Fields
$query .= PHP_EOL . Indent::_(3) . "\$query->select('a.*');";
$query .= PHP_EOL . PHP_EOL . Indent::_(3) . "//" . Line::_(
__LINE__,__CLASS__
- ) . " From the " . $this->componentCodeName . "_"
+ ) . " From the " . CFactory::_('Config')->component_code_name . "_"
. $nameSingleCode . " table";
$query .= PHP_EOL . Indent::_(3)
. "\$query->from(\$db->quoteName('#__"
- . $this->componentCodeName . "_" . $nameSingleCode
+ . CFactory::_('Config')->component_code_name . "_" . $nameSingleCode
. "', 'a'));";
$query .= PHP_EOL . Indent::_(3) . "//" . Line::_(__Line__, __Class__)
. " The bulk export path";
@@ -15129,7 +15062,7 @@ class Interpretation extends Fields
) . " Get global switch to activate text only export";
$query .= PHP_EOL . Indent::_(3)
. "\$export_text_only = JComponentHelper::getParams('com_"
- . $this->componentCodeName
+ . CFactory::_('Config')->component_code_name
. "')->get('export_text_only', 0);";
// first check if we have custom queries
$custom_query = $this->setCustomQuery(
@@ -15162,7 +15095,7 @@ class Interpretation extends Fields
) . " Implement View Level Access";
$query .= PHP_EOL . Indent::_(3)
. "if (!\$user->authorise('core.options', 'com_"
- . $this->componentCodeName . "'))";
+ . CFactory::_('Config')->component_code_name . "'))";
$query .= PHP_EOL . Indent::_(3) . "{";
$query .= PHP_EOL . Indent::_(4)
. "\$groups = implode(',', \$user->getAuthorisedViewLevels());";
@@ -15301,9 +15234,9 @@ class Interpretation extends Fields
$method[] = Indent::_(2) . "\$user = JFactory::getUser();";
$method[] = Indent::_(2) . "if (\$user->authorise('"
. $nameSingleCode . ".export', 'com_"
- . $this->componentCodeName
+ . CFactory::_('Config')->component_code_name
. "') && \$user->authorise('core.export', 'com_"
- . $this->componentCodeName . "'))";
+ . CFactory::_('Config')->component_code_name . "'))";
$method[] = Indent::_(2) . "{";
$method[] = Indent::_(3) . "//" . Line::_(__Line__, __Class__)
. " Get the input";
@@ -15344,7 +15277,7 @@ class Interpretation extends Fields
. $this->langPrefix . "_EXPORT_FAILED');";
$method[] = Indent::_(2)
. "\$this->setRedirect(JRoute::_('index.php?option=com_"
- . $this->componentCodeName . "&view=" . $nameListCode
+ . CFactory::_('Config')->component_code_name . "&view=" . $nameListCode
. "', false), \$message, 'error');";
$method[] = Indent::_(2) . "return;";
$method[] = Indent::_(1) . "}";
@@ -15362,9 +15295,9 @@ class Interpretation extends Fields
$method[] = Indent::_(2) . "\$user = JFactory::getUser();";
$method[] = Indent::_(2) . "if (\$user->authorise('"
. $nameSingleCode . ".import', 'com_"
- . $this->componentCodeName
+ . CFactory::_('Config')->component_code_name
. "') && \$user->authorise('core.import', 'com_"
- . $this->componentCodeName . "'))";
+ . CFactory::_('Config')->component_code_name . "'))";
$method[] = Indent::_(2) . "{";
$method[] = Indent::_(3) . "//" . Line::_(__Line__, __Class__)
. " Get the import model";
@@ -15407,14 +15340,14 @@ class Interpretation extends Fields
{
$method[] = Indent::_(4)
. "\$this->setRedirect(JRoute::_('index.php?option=com_"
- . $this->componentCodeName . "&view=import_"
+ . CFactory::_('Config')->component_code_name . "&view=import_"
. $nameListCode . "', false), \$message);";
}
else
{
$method[] = Indent::_(4)
. "\$this->setRedirect(JRoute::_('index.php?option=com_"
- . $this->componentCodeName
+ . CFactory::_('Config')->component_code_name
. "&view=import', false), \$message);";
}
$method[] = Indent::_(4) . "return;";
@@ -15426,7 +15359,7 @@ class Interpretation extends Fields
. $this->langPrefix . "_IMPORT_FAILED');";
$method[] = Indent::_(2)
. "\$this->setRedirect(JRoute::_('index.php?option=com_"
- . $this->componentCodeName . "&view=" . $nameListCode
+ . CFactory::_('Config')->component_code_name . "&view=" . $nameListCode
. "', false), \$message, 'error');";
$method[] = Indent::_(2) . "return;";
$method[] = Indent::_(1) . "}";
@@ -15579,9 +15512,9 @@ class Interpretation extends Fields
}
$query .= PHP_EOL . PHP_EOL . Indent::_(2) . "//" . Line::_(
__LINE__,__CLASS__
- ) . " From the " . $this->componentCodeName . "_item table";
+ ) . " From the " . CFactory::_('Config')->component_code_name . "_item table";
$query .= PHP_EOL . Indent::_(2) . "\$query->from(\$db->quoteName('#__"
- . $this->componentCodeName . "_" . $nameSingleCode . "', 'a'));";
+ . CFactory::_('Config')->component_code_name . "_" . $nameSingleCode . "', 'a'));";
// add the category
if ($addCategory)
{
@@ -15660,7 +15593,7 @@ class Interpretation extends Fields
. " Implement View Level Access";
$query .= PHP_EOL . Indent::_(2)
. "if (!\$user->authorise('core.options', 'com_"
- . $this->componentCodeName . "'))";
+ . CFactory::_('Config')->component_code_name . "'))";
$query .= PHP_EOL . Indent::_(2) . "{";
$query .= PHP_EOL . Indent::_(3)
. "\$groups = implode(',', \$user->getAuthorisedViewLevels());";
@@ -15980,8 +15913,8 @@ class Interpretation extends Fields
. ucwords((string) $filter['code']) . ".";
// we only add multi filter option if new filter type
// and we have multi filter set for this field (2 = topbar)
- if (isset($this->adminFilterType[$nameListCode])
- && $this->adminFilterType[$nameListCode] == 2
+ if (CFactory::_('Registry')->
+ get('builder.admin_filter_type.' . $nameListCode, 1) == 2
&& isset($filter['multi'])
&& $filter['multi'] == 2)
{
@@ -16667,7 +16600,7 @@ class Interpretation extends Fields
Placefix::_h('VERSION') => $viewArray['settings']->version);
$this->buildDynamique($_target, 'javascript_file', false, $_config);
// set path
- $_path = '/administrator/components/com_' . $this->componentCodeName
+ $_path = '/administrator/components/com_' . CFactory::_('Config')->component_code_name
. '/assets/js/' . $nameListCode . '.js';
// load the file to the list view
CFactory::_('Content')->set_($nameListCode, 'ADMIN_ADD_JAVASCRIPT_FILE', PHP_EOL . PHP_EOL . Indent::_(2) . "//" . Line::_(
@@ -17834,14 +17767,14 @@ class Interpretation extends Fields
{
// set the function or file path (2 = topbar)
$funtion_path = true;
- if (isset($this->adminFilterType[$nameListCode])
- && $this->adminFilterType[$nameListCode] == 2)
+ if (CFactory::_('Registry')->
+ get('builder.admin_filter_type.' . $nameListCode, 1) == 2)
{
$funtion_path = false;
}
$function = array();
// set component name
- $component = $this->componentCodeName;
+ $component = CFactory::_('Config')->component_code_name;
$Component = ucfirst((string) $component);
foreach ($this->filterBuilder[$nameListCode] as $filter)
{
@@ -18284,8 +18217,8 @@ class Interpretation extends Fields
// add the category filter stuff
$this->setCategorySidebarFilterHelper($fieldFilters, $nameListCode);
// check if filter fields are added (1 = sidebar)
- if (isset($this->adminFilterType[$nameListCode])
- && $this->adminFilterType[$nameListCode] == 1
+ if (CFactory::_('Registry')->
+ get('builder.admin_filter_type.' . $nameListCode, 1) == 1
&& isset($this->filterBuilder[$nameListCode])
&& ArrayHelper::check(
$this->filterBuilder[$nameListCode]
@@ -18452,8 +18385,8 @@ class Interpretation extends Fields
)
{
// add the default filters if we are on the old filter paths (1 = sidebar)
- if (isset($this->adminFilterType[$nameListCode])
- && $this->adminFilterType[$nameListCode] == 1)
+ if (CFactory::_('Registry')->
+ get('builder.admin_filter_type.' . $nameListCode, 1) == 1)
{
// set batch
$filter[] = PHP_EOL . Indent::_(2)
@@ -18500,8 +18433,8 @@ class Interpretation extends Fields
protected function setCategorySidebarFilterHelper(&$filter, &$nameListCode)
{
// add the category filter if we are on the old filter paths (1 = sidebar)
- if (isset($this->adminFilterType[$nameListCode])
- && $this->adminFilterType[$nameListCode] == 1
+ if (CFactory::_('Registry')->
+ get('builder.admin_filter_type.' . $nameListCode, 1) == 1
&& isset($this->categoryBuilder[$nameListCode])
&& ArrayHelper::check(
$this->categoryBuilder[$nameListCode]
@@ -18550,8 +18483,8 @@ class Interpretation extends Fields
{
// check if we should add some help to get the values (2 = topbar)
$get_values = false;
- if (isset($this->adminFilterType[$nameListCode])
- && $this->adminFilterType[$nameListCode] == 2)
+ if (CFactory::_('Registry')->
+ get('builder.admin_filter_type.' . $nameListCode, 1) == 2)
{
// since the old path is not used, we need to add those values here
$get_values = true;
@@ -18804,7 +18737,7 @@ class Interpretation extends Fields
}
else
{
- $component = $this->componentCodeName;
+ $component = CFactory::_('Config')->component_code_name;
}
// check if category has another name
if (CFactory::_('Registry')->get('category.other.name.' . $nameListCode . '.view')
@@ -18874,7 +18807,7 @@ class Interpretation extends Fields
{
$allow = array();
// set component name
- $component = $this->componentCodeName;
+ $component = CFactory::_('Config')->component_code_name;
// prepare custom permission script
$customAllow = CFactory::_('Customcode.Dispenser')->get(
'php_allowadd', $nameSingleCode, '', null, true
@@ -19029,7 +18962,7 @@ class Interpretation extends Fields
{
$allow = array();
// set component name
- $component = $this->componentCodeName;
+ $component = CFactory::_('Config')->component_code_name;
// prepare custom permission script
$customAllow = CFactory::_('Customcode.Dispenser')->get(
'php_allowedit', $nameSingleCode, '', null, true
@@ -19385,7 +19318,7 @@ class Interpretation extends Fields
public function setJmodelAdminGetForm($nameSingleCode, $nameListCode)
{
// set component name
- $component = $this->componentCodeName;
+ $component = CFactory::_('Config')->component_code_name;
// allways load these
$getForm = array();
$getForm[] = PHP_EOL . Indent::_(2) . "//" . Line::_(__Line__, __Class__)
@@ -19977,7 +19910,7 @@ class Interpretation extends Fields
{
$allow = array();
// set component name
- $component = $this->componentCodeName;
+ $component = CFactory::_('Config')->component_code_name;
// prepare custom permission script
$customAllow = CFactory::_('Customcode.Dispenser')->get(
'php_allowedit', $nameSingleCode, Indent::_(2)
@@ -20035,7 +19968,7 @@ class Interpretation extends Fields
{
$allow = array();
// set component name
- $component = $this->componentCodeName;
+ $component = CFactory::_('Config')->component_code_name;
// setup correct core target
$coreLoad = false;
if (isset($this->permissionCore[$nameSingleCode]))
@@ -20157,7 +20090,7 @@ class Interpretation extends Fields
{
$allow = array();
// set component name
- $component = $this->componentCodeName;
+ $component = CFactory::_('Config')->component_code_name;
// setup correct core target
$coreLoad = false;
if (isset($this->permissionCore[$nameSingleCode]))
@@ -20323,7 +20256,7 @@ class Interpretation extends Fields
{
$allow = array();
// set component name
- $component = $this->componentCodeName;
+ $component = CFactory::_('Config')->component_code_name;
// setup correct core target
$coreLoad = false;
if (isset($this->permissionCore[$nameSingleCode]))
@@ -20438,7 +20371,7 @@ class Interpretation extends Fields
if ($view != 'component')
{
// set component name
- $component = $this->componentCodeName;
+ $component = CFactory::_('Config')->component_code_name;
// set label
$label = 'Permissions in relation to this ' . $view;
// set the access fieldset
@@ -20611,7 +20544,7 @@ class Interpretation extends Fields
public function setStoredId(&$nameSingleCode, &$nameListCode)
{
// set component name
- $Component = ucwords((string) $this->componentCodeName);
+ $Component = ucwords((string) CFactory::_('Config')->component_code_name);
// keep track of all fields already added
$donelist = array('id' => true, 'search' => true,
'published' => true, 'access' => true,
@@ -20636,8 +20569,8 @@ class Interpretation extends Fields
&& !isset($this->fieldsNames[$nameSingleCode]['access']))
{
// the side bar option is single
- if (isset($this->adminFilterType[$nameListCode])
- && $this->adminFilterType[$nameListCode] == 1)
+ if (CFactory::_('Registry')->
+ get('builder.admin_filter_type.' . $nameListCode, 1) == 1)
{
$stored .= PHP_EOL . Indent::_(2)
. "\$id .= ':' . \$this->getState('filter.access');";
@@ -20716,8 +20649,8 @@ class Interpretation extends Fields
if ($filter['type'] === 'category')
{
// the side bar option is single (1 = sidebar)
- if (isset($this->adminFilterType[$nameListCode])
- && $this->adminFilterType[$nameListCode] == 1)
+ if (CFactory::_('Registry')->
+ get('builder.admin_filter_type.' . $nameListCode, 1) == 1)
{
$stored = PHP_EOL . Indent::_(2)
. "\$id .= ':' . \$this->getState('filter.category');";
@@ -20748,8 +20681,8 @@ class Interpretation extends Fields
{
// check if this is the topbar filter, and multi option (2 = topbar)
if (isset($filter['multi']) && $filter['multi'] == 2
- && isset($this->adminFilterType[$nameListCode])
- && $this->adminFilterType[$nameListCode] == 2)
+ && CFactory::_('Registry')->
+ get('builder.admin_filter_type.' . $nameListCode, 1) == 2)
{
// top bar selection can result in
// an array due to multi selection
@@ -21063,7 +20996,7 @@ class Interpretation extends Fields
$toolBar .= PHP_EOL . Indent::_(4) . "{";
$toolBar .= PHP_EOL . Indent::_(5)
. "JToolbarHelper::versions('com_"
- . $this->componentCodeName . "." . $nameSingleCode
+ . CFactory::_('Config')->component_code_name . "." . $nameSingleCode
. "', \$this->item->id);";
$toolBar .= PHP_EOL . Indent::_(4) . "}";
}
@@ -21083,7 +21016,7 @@ class Interpretation extends Fields
$toolBar .= PHP_EOL . Indent::_(4) . "{";
$toolBar .= PHP_EOL . Indent::_(5)
. "JToolbarHelper::versions('com_"
- . $this->componentCodeName . "." . $nameSingleCode
+ . CFactory::_('Config')->component_code_name . "." . $nameSingleCode
. "', \$this->item->id);";
$toolBar .= PHP_EOL . Indent::_(4) . "}";
}
@@ -21151,8 +21084,8 @@ class Interpretation extends Fields
$donelist = array();
// we must add the formSubmited code if new above filters is used (2 = topbar)
$new_filter = false;
- if (isset($this->adminFilterType[$nameListCode])
- && $this->adminFilterType[$nameListCode] == 2)
+ if (CFactory::_('Registry')->
+ get('builder.admin_filter_type.' . $nameListCode, 1) == 2)
{
$state .= PHP_EOL . PHP_EOL . Indent::_(2) . "//"
. Line::_(__Line__, __Class__) . " Check if the form was submitted";
@@ -21865,11 +21798,11 @@ class Interpretation extends Fields
// check if this is a local table
if (strpos(
(string) $item['custom']['table'],
- '#__' . $this->componentCodeName . '_'
+ '#__' . CFactory::_('Config')->component_code_name . '_'
) !== false)
{
$keyTableNAme = str_replace(
- '#__' . $this->componentCodeName . '_',
+ '#__' . CFactory::_('Config')->component_code_name . '_',
'', (string) $item['custom']['table']
);
}
@@ -22259,11 +22192,9 @@ class Interpretation extends Fields
case 'custom.admin.views.html':
$headers[] = 'use Joomla\CMS\MVC\View\HtmlView;';
// load the file class if uikit is being loaded
- if ((2 == $this->uikit || 1 == $this->uikit)
- && isset($this->uikitComp[$codeName])
- && ArrayHelper::check(
- $this->uikitComp[$codeName]
- ))
+ if ((2 == CFactory::_('Config')->uikit || 1 == CFactory::_('Config')->uikit)
+ && CFactory::_('Registry')->
+ exists('builder.uikit_comp.' . $codeName))
{
$headers[] = 'use Joomla\CMS\Filesystem\File;';
}
@@ -22288,10 +22219,12 @@ class Interpretation extends Fields
$headers[] = 'use Joomla\Utilities\ArrayHelper;';
break;
}
+ // for plugin event TODO change event api signatures
+ $component_context = CFactory::_('Config')->component_context;
// Trigger Event: jcb_ce_setClassHeader
CFactory::_('Event')->trigger(
'jcb_ce_setClassHeader',
- array(&$this->componentContext, &$context, &$codeName,
+ array(&$component_context, &$context, &$codeName,
&$headers)
);
// check if headers were added
@@ -22315,7 +22248,7 @@ class Interpretation extends Fields
protected function setHelperClassHeader(&$headers, $target_client)
{
// add only to admin client
- if ('admin' === $target_client && $this->addEximport)
+ if ('admin' === $target_client && CFactory::_('Config')->get('add_eximport', false))
{
$headers[] = 'use PhpOffice\PhpSpreadsheet\IOFactory;';
$headers[] = 'use PhpOffice\PhpSpreadsheet\Spreadsheet;';
@@ -22335,8 +22268,8 @@ class Interpretation extends Fields
protected function setChosenMultiSelectionHeaders(&$headers, $nameListCode)
{
// check that the filter type is the new filter option (2 = topbar)
- if (isset($this->adminFilterType[$nameListCode])
- && $this->adminFilterType[$nameListCode] == 2)
+ if (CFactory::_('Registry')->
+ get('builder.admin_filter_type.' . $nameListCode, 1) == 2)
{
// add category switch
$add_category = false;
@@ -23049,17 +22982,17 @@ class Interpretation extends Fields
. "";
$slidecounter++;
// build the template file
- $target = array('custom_admin' => $this->componentCodeName);
+ $target = array('custom_admin' => CFactory::_('Config')->component_code_name);
$this->buildDynamique($target, 'template', $tempName);
// set the file data
$TARGET = StringHelper::safe(
CFactory::_('Config')->build_target, 'U'
);
// SITE_TEMPLATE_BODY << |
---|