Skip to content

Commit aed7a10

Browse files
committed
Fixed wrong message in category creating in demo blog
1 parent d534013 commit aed7a10

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

CHANGELOG

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ Version 1.5.x -
22
----------------------------
33
- Bug: fixed error on setup module with db transaction
44
- Bug: fixed error in usage of simplexml_load_file
5+
- Bug: fixed suspicious binary operations errors
6+
- Bug: fixed wrong message in category creating in demo blog
57

68

79
Version 1.4.1 - 30 Jan, 2021

demos/simple-blog/protected/controllers/CategoriesController.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -96,20 +96,20 @@ public function indexAction($msg = '')
9696

9797
if (!empty($msg)) {
9898
if ($msg == 'delete_success') {
99-
$msgType = 'Category has been successfully deleted!';
99+
$msgText = 'Category has been successfully deleted!';
100100
$msgType = 'success';
101101
} elseif ($msg == 'delete_error') {
102-
$msgType = 'An error occurred while deleting the category!';
102+
$msgText = 'An error occurred while deleting the category!';
103103
$msgType = 'error';
104104
} elseif ($msg == 'delete_demo') {
105-
$msgType = '<b>:(</b> Sorry, but delete operation is blocked in DEMO version!';
105+
$msgText = '<b>:(</b> Sorry, but delete operation is blocked in DEMO version!';
106106
$msgType = 'warning';
107107
} elseif ($msg == 'wrong-id') {
108-
$msgType = 'Wrong parameter passed! Check category ID.';
108+
$msgText = 'Wrong parameter passed! Check category ID.';
109109
$msgType = 'error';
110110
}
111111
if ( ! empty($msgType)) {
112-
$this->_view->actionMessage = CWidget::create('CMessage', [$msgType, $msgType, ['button' => true]]);
112+
$this->_view->actionMessage = CWidget::create('CMessage', [$msgType, $msgText, ['button' => true]]);
113113
}
114114
}
115115

0 commit comments

Comments
 (0)