impoved the request linking options, fixed few bugs in compiler (#52)

This commit is contained in:
dev
2017-03-08 06:49:54 +02:00
committed by GitHub
parent 30e37dcfde
commit 3953df845c
228 changed files with 1268 additions and 1019 deletions

View File

@ -2318,7 +2318,11 @@ class Get
$langHolders["JText::sprintf('".$string."',"] = "JText::sprintf('".$keyLang."',";
$langHolders['JText::sprintf("'.$string.'",'] = 'JText::sprintf("'.$keyLang.'",';
}
$content = $this->setPlaceholders($content, $langHolders);
// only continue if we have value to replace
if (isset($langHolders) && ComponentbuilderHelper::checkArray($langHolders))
{
$content = $this->setPlaceholders($content, $langHolders);
}
}
}
return $content;
@ -2733,7 +2737,11 @@ class Get
*/
public function setDynamicValues($string)
{
return $this->setLangStrings($this->setCustomCodeData($string));
if (ComponentbuilderHelper::checkString($string))
{
return $this->setLangStrings($this->setCustomCodeData($string));
}
return $string;
}
/**