Commit d4578caf authored by Shakarim Sapa's avatar Shakarim Sapa

- Test

parent 71dfcfd4
......@@ -127,11 +127,6 @@ class CoContentLang extends \common\components\ActiveRecordModel
{
$arrWhatReplace[] = '{' . $block->name . '}';
$arrReplace[] = $block->lang->text;
if ($block->name=='o-kompanii-data-centr')
{
echo str_replace($arrWhatReplace, $arrReplace, $content);
die;
}
$arrWhatReplaceNext[] = '[' . $block->name . ']';
$arrReplaceNext[] = $block->lang->text;
}
......@@ -156,6 +151,8 @@ class CoContentLang extends \common\components\ActiveRecordModel
$arrWhatReplaceNext[] = '[footer-index]';
$arrReplaceNext[] = \Yii::$app->getView()->render('@app/views/layouts/footer-index');
return str_replace($arrWhatReplaceNext, $arrReplaceNext,str_replace($arrWhatReplace, $arrReplace, $content));
$content = str_replace($arrWhatReplace, $arrReplace, $content);
var_dump($content); die;
return str_replace($arrWhatReplaceNext, $arrReplaceNext, $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