Added fix to insure that online code feature also functions in custom code area
This commit is contained in:
parent
137bde87a4
commit
8b3528d0a4
@ -3719,6 +3719,11 @@ class Get
|
|||||||
$this->db->insertObject('#__componentbuilder_online_code', $object);
|
$this->db->insertObject('#__componentbuilder_online_code', $object);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// set notice that we could not get the code from the url
|
||||||
|
$this->app->enqueueMessage(JText::sprintf('The code from <b>%s</b> could not be added!', $urlKey), 'warning');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// add to local bucket
|
// add to local bucket
|
||||||
if (ComponentbuilderHelper::checkString($this->onlineCodeData[$urlKey]))
|
if (ComponentbuilderHelper::checkString($this->onlineCodeData[$urlKey]))
|
||||||
@ -4360,6 +4365,9 @@ class Get
|
|||||||
foreach ($bucket as $nr => &$customCode)
|
foreach ($bucket as $nr => &$customCode)
|
||||||
{
|
{
|
||||||
$customCode['code'] = base64_decode($customCode['code']);
|
$customCode['code'] = base64_decode($customCode['code']);
|
||||||
|
// always insure that the online code is loaded
|
||||||
|
$customCode['code'] = $this->setOnlineCodeData($customCode['code']);
|
||||||
|
// set the lang only if needed
|
||||||
if ($setLang)
|
if ($setLang)
|
||||||
{
|
{
|
||||||
$customCode['code'] = $this->setLangStrings($customCode['code']);
|
$customCode['code'] = $this->setLangStrings($customCode['code']);
|
||||||
|
Loading…
Reference in New Issue
Block a user