Dieser Commit ist enthalten in:
o.pinke 2023-04-26 15:46:27 +02:00
Ursprung 95444fed6a
Commit 7dbcb40790
1 geänderte Dateien mit 20 neuen und 20 gelöschten Zeilen

Datei anzeigen

@ -146,7 +146,7 @@ class cApiModule extends Item {
public function createModuleFolder() {
//echo $this->_aModFileEditConf['modPath'];
$sPathErrorLog = cRegistry::getConfigValue('path', 'logs').'errorlog.txt';
$sPathErrorLog = cRegistry::getConfigValue('path', 'logs') . 'errorlog.txt';
if (is_writable($this->_aModFileEditConf['clientPath']) && !file_exists($this->_aModFileEditConf['modPath'])) {
try {
@ -777,7 +777,7 @@ class cApiModule extends Item {
}
// Export basic module
$oNodeModule = & $oRoot->appendChild("module");
$oNodeModule = &$oRoot->appendChild("module");
$oNodeModule->appendChild("name", clHtmlSpecialChars($this->get("name")));
$oNodeModule->appendChild("description", clHtmlSpecialChars($this->get("description")));
$oNodeModule->appendChild("type", clHtmlSpecialChars($this->get("type")));
@ -799,7 +799,7 @@ class cApiModule extends Item {
unset($sContent);
// Export layouts
$oNodeLayouts = & $oRoot->appendChild("layouts");
$oNodeLayouts = &$oRoot->appendChild("layouts");
$cApiLayoutCollection = new cApiLayoutCollection;
$cApiLayoutCollection->setWhere("idclient", $client);
@ -827,7 +827,7 @@ class cApiModule extends Item {
$iID = $oLang->get($oLang->primaryKey);
if (in_array($iID, $aData["translations"])) {
$oNodeTrans = & $oRoot->appendChild("translations");
$oNodeTrans = &$oRoot->appendChild("translations");
// This is nice, but it doesn't help so much,
// as this data is available too late on import ...
$oNodeTrans->setNodeAttribs(["origin-language-id" => $iID, "origin-language-name" => clHtmlSpecialChars($oLang->get("name"))]);
@ -840,7 +840,7 @@ class cApiModule extends Item {
$oTranslations->query();
while ($oTranslation = $oTranslations->next()) {
$oNodeString = & $oNodeTrans->appendChild("string");
$oNodeString = &$oNodeTrans->appendChild("string");
$oNodeString->appendChild("original", clHtmlSpecialChars($oTranslation->get("original")));
$oNodeString->appendChild("translation", clHtmlSpecialChars($oTranslation->get("translation")));
}
@ -1145,9 +1145,9 @@ class cApiModuleTranslationCollection extends ItemCollection {
$cApiModuleTranslationCollection->select("idmod = '$idmod' AND idlang='$idlang'");
$xmlTree = new XmlTree('1.0', 'ISO-8859-1');
$root = & $xmlTree->addRoot('module');
$root = &$xmlTree->addRoot('module');
$translation = & $root->appendChild('translation');
$translation = &$root->appendChild('translation');
$translation->setNodeAttribs(["origin-language-id" => $idlang, "origin-language-name" => $cApiLanguage->get("name")]);
while ($otranslation = $cApiModuleTranslationCollection->next()) {