Commit 574b89da998abc8252d8d8e3fc32aed7a977555b
1 parent
a34d7471
link in comments in admin
Showing
1 changed file
with
2 additions
and
4 deletions
Show diff stats
views/manage/index.php
1 | <?php | 1 | <?php |
2 | use artbox\webcomment\models\CommentModel; | 2 | use artbox\webcomment\models\CommentModel; |
3 | use artbox\webcomment\models\CommentModelSearch; | 3 | use artbox\webcomment\models\CommentModelSearch; |
4 | - use MongoDB\Driver\Exception\ExecutionTimeoutException; | ||
5 | use yii\data\ActiveDataProvider; | 4 | use yii\data\ActiveDataProvider; |
6 | use yii\grid\GridView; | 5 | use yii\grid\GridView; |
7 | use yii\helpers\Html; | 6 | use yii\helpers\Html; |
8 | use yii\helpers\StringHelper; | 7 | use yii\helpers\StringHelper; |
9 | use yii\web\View; | 8 | use yii\web\View; |
10 | use yii\widgets\Pjax; | 9 | use yii\widgets\Pjax; |
11 | - use yii\helpers\Url; | ||
12 | use yii\helpers\Json; | 10 | use yii\helpers\Json; |
13 | 11 | ||
14 | /** | 12 | /** |
@@ -69,9 +67,9 @@ | @@ -69,9 +67,9 @@ | ||
69 | if ($item !== null) { | 67 | if ($item !== null) { |
70 | if ($urlManagerFrontend = \Yii::$app->get('urlManagerFrontend', false)) { | 68 | if ($urlManagerFrontend = \Yii::$app->get('urlManagerFrontend', false)) { |
71 | 69 | ||
72 | - return "<a href='" . $urlManagerFrontend->createUrl( | 70 | + return "<a href='" . $urlManagerFrontend->createUrl( |
73 | Json::decode($item->lang->alias->route) | 71 | Json::decode($item->lang->alias->route) |
74 | - ) . "'>" . $item->lang->title . "</a>"; | 72 | + ) . "' target = '_blank'>" . $item->lang->title . "</a>"; |
75 | } | 73 | } |
76 | 74 | ||
77 | return $item->lang->title; | 75 | return $item->lang->title; |