Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Lines changed: 2 additions & 0 deletions
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

Lines changed: 5 additions & 5 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /