Commit 21d355d9 authored by Shakarim Sapa's avatar Shakarim Sapa

- Test

parent ea203843
......@@ -125,6 +125,12 @@ class CoContentLang extends \common\components\ActiveRecordModel
{
if($block->lang)
{
if ($block->name=='o-kompanii-data-centr')
{
var_dump($block->name);
var_dump($block->lang->text);
die;
}
$arrWhatReplace[] = '{' . $block->name . '}';
$arrReplace[] = $block->lang->text;
$arrWhatReplaceNext[] = '[' . $block->name . ']';
......@@ -151,7 +157,6 @@ class CoContentLang extends \common\components\ActiveRecordModel
$arrWhatReplaceNext[] = '[footer-index]';
$arrReplaceNext[] = \Yii::$app->getView()->render('@app/views/layouts/footer-index');
$content = str_replace($arrWhatReplace, $arrReplace, $content);
return str_replace($arrWhatReplaceNext, $arrReplaceNext, $content);
return str_replace($arrWhatReplaceNext, $arrReplaceNext,str_replace($arrWhatReplace, $arrReplace, $content));
}
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment