Skip to content

Commit

Permalink
release 0.9.3
Browse files Browse the repository at this point in the history
  • Loading branch information
yupe committed Feb 10, 2015
1 parent d143825 commit 67b6bf6
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 10 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
===================


Версия 0.9.3 в разработке
Версия 0.9.3 10 февраля 2015
-------------------------------------
- #1833: Исправлена ошибка оплаты заказа (@yupe)
- #1837: Исправлена ошибка загрузки аватарок для профиля (@brussens, @yupe)
Expand Down
4 changes: 2 additions & 2 deletions protected/modules/install/views/default/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
[
'{twitter}' => CHtml::link('twitter', 'http://twitter.com/yupecms', ['target' => '_blank']),
'{link}' => CHtml::link(
'http://yupe.ru',
'http://yupe.ru?from=install',
'http://yupe-project.ru',
'http://yupe-project.ru?from=install',
['target' => '_blank']
),
'{forum}' => CHtml::link(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ public function safeUp()
],
[0, 1, 'FAQ', '/faq', '', 'FAQ', '', '', '', '', '', 0, 7, 1, 0],
[0, 1, 'Контакты', '/contacts', '', 'Контакты', '', '', '', '', '', 0, 7, 1, 0],
[0, 1, 'Магазин', '/store/catalog/index', '', 'Магазин', '', '', '', '', '', 0, 1, 1, 0],
];

$columns = array_shift($items);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,19 @@ public function safeUp()
$menu = Menu::model()->find(['order' => 'id ASC', 'limit' => 1]);

if(null !== $menu) {
$item = new MenuItem();
$item->menu_id = $menu->id;
$item->title = 'Магазин';
$item->href = '/store/catalog/index';
$item->parent_id = 0;
$item->condition_name = null;
$item->save();

$item = MenuItem::model()->find('href = :href', [':href' => '/store/catalog/index']);

if(null != $item) {

$item = new MenuItem();
$item->menu_id = $menu->id;
$item->title = 'Магазин';
$item->href = '/store/catalog/index';
$item->parent_id = 0;
$item->condition_name = null;
$item->save();
}
}
}
}
Expand Down

0 comments on commit 67b6bf6

Please sign in to comment.