diff --git a/ground/views/article.php b/ground/views/article.php index d501b0c..7a1d20b 100644 --- a/ground/views/article.php +++ b/ground/views/article.php @@ -10,7 +10,9 @@
html; ?>
- +

+ [ блог автора authorUser->nick ?> - ] +


diff --git a/ground/views/pointsTemplate.php b/ground/views/pointsTemplate.php index 5f82c0a..889000b 100644 --- a/ground/views/pointsTemplate.php +++ b/ground/views/pointsTemplate.php @@ -1,3 +1,11 @@ +getByPK((int) App::getParam('user')); + if ($user->id == 0) { + App::redirect('/page/points/'); + } +} +?>
@@ -5,7 +13,7 @@

Списки точек по категориям

- Вернуться на карту. + Перейти: на карту / страница nick?>.
@@ -33,13 +41,8 @@ if ((int) App::getParam('category')) { $header = 'Список точек в категории "' . $categories[(int) App::getParam('category')]->name . '"'; } - if (App::getParam('user')) { - $user = User::model()->getByPK((int) App::getParam('user')); - if ($user->id) { - $header = 'Список точек пользователя "' . $user->nick . '"'; - } else { - App::redirect('/page/points/'); - } + if ($user->id) { + $header = 'Список точек пользователя "' . $user->nick . '"'; } ?>