Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Rotua Panjaitan
yii2
Commits
84af0ad1
Commit
84af0ad1
authored
Aug 07, 2014
by
Alexander Makarov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes #4592: Fixed `yii help` command was listing incorrect action names for…
Fixes #4592: Fixed `yii help` command was listing incorrect action names for methods like `actionSayNO`
parent
7aa6a30d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
CHANGELOG.md
framework/CHANGELOG.md
+1
-0
HelpController.php
framework/console/controllers/HelpController.php
+1
-1
No files found.
framework/CHANGELOG.md
View file @
84af0ad1
...
...
@@ -78,6 +78,7 @@ Yii Framework 2 Change Log
-
Bug #4497: Fixed StringHelper::byteSubstr() returning empty string on null $length param (mbman)
-
Bug #4514: Fixed Request class crashing when empty CSRF token value is sent in cookie (cebe)
-
Bug #4519:
`yii\base\Model::isAttributeRequired()`
should check if the
`when`
option of the validator is set (thiagotalma)
-
Bug #4592: Fixed
`yii help`
command was listing incorrect action names for methods like
`actionSayNO`
(samdark)
-
Bug: Fixed inconsistent return of
`\yii\console\Application::runAction()`
(samdark)
-
Bug: URL encoding for the route parameter added to
`\yii\web\UrlManager`
(klimov-paul)
-
Bug: Fixed the bug that requesting protected or private action methods would cause 500 error instead of 404 (qiangxue)
...
...
framework/console/controllers/HelpController.php
View file @
84af0ad1
...
...
@@ -121,7 +121,7 @@ class HelpController extends Controller
foreach
(
$class
->
getMethods
()
as
$method
)
{
$name
=
$method
->
getName
();
if
(
$method
->
isPublic
()
&&
!
$method
->
isStatic
()
&&
strpos
(
$name
,
'action'
)
===
0
&&
$name
!==
'actions'
)
{
$actions
[]
=
Inflector
::
camel2id
(
substr
(
$name
,
6
));
$actions
[]
=
Inflector
::
camel2id
(
substr
(
$name
,
6
)
,
'-'
,
true
);
}
}
sort
(
$actions
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment