3108 - Важно - удаление лишних разделов из sitemao.xml

parent c8a74f38
...@@ -212,7 +212,7 @@ class DocList extends \yii\db\ActiveRecord ...@@ -212,7 +212,7 @@ class DocList extends \yii\db\ActiveRecord
$active = 'active'; $active = 'active';
} }
$list[] = Html::tag('li', Html::a($item['text'], $item['url']) . $ch, ['class' => $active]); $list[] = Html::tag('li', Html::a($item['text'], $item['url']) . $ch, ['class' => $active]);
if ($item['url'] == yii::$app->request->url || in_array(yii::$app->request->url, $item['urls'])) { if ($item['url'] == yii::$app->request->url) {
$open = 'active'; $open = 'active';
} }
} }
......
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