Просмотр исходного кода

#148 - Studio: block copying problem was fixed.

AntonLV 11 лет назад
Родитель
Сommit
a10d03aa14
1 измененных файлов с 4 добавлено и 2 удалено
  1. 4 2
      studio/template/scripts/BxBaseStudioBuilderPage.php

+ 4 - 2
studio/template/scripts/BxBaseStudioBuilderPage.php

@@ -505,7 +505,7 @@ class BxBaseStudioBuilderPage extends BxDolStudioBuilderPage
             $bResult = true;
             foreach($aBlocks as $aBlock) {
                 $sTitleKey = $this->getSystemName($aBlock['title'] . '_' . time());
-                $sTitleValue = _t($aBlock['title']);
+                $aTitleValues = $oLanguage->getLanguageString($aBlock['title']);
 
                 unset($aBlock['id']);
                 $aBlock['object'] = $this->sPage;
@@ -546,7 +546,9 @@ class BxBaseStudioBuilderPage extends BxDolStudioBuilderPage
                     break;
                 }
 
-                $oLanguage->addLanguageString($sTitleKey, $sTitleValue);
+                //--- Process Title copy
+                foreach($aTitleValues as $iLangId => $aTitleValue)
+                	$oLanguage->addLanguageString($sTitleKey, $aTitleValue['string'], $iLangId);
             }
 
             if($bResult)