mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 03:01:43 +09:00
Allow comma as a separator for module action methods
This commit is contained in:
parent
289a249569
commit
f419353013
2 changed files with 2 additions and 2 deletions
|
|
@ -99,7 +99,7 @@ class ModuleActionParser extends BaseParser
|
|||
$method_attr = trim($action['method'] ?? '');
|
||||
if ($method_attr)
|
||||
{
|
||||
$methods = explode('|', strtoupper($method_attr));
|
||||
$methods = array_map('trim', preg_split('/[|,]/', strtoupper($method_attr)));
|
||||
}
|
||||
elseif ($action_type === 'controller' || starts_with('proc', $action_name))
|
||||
{
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
<actions>
|
||||
<!-- Dashboard -->
|
||||
<action name="dispAdminIndex" class="Controllers\Dashboard" index="true" />
|
||||
<action name="procAdminLogout" class="Controllers\Dashboard" method="GET|POST" />
|
||||
<action name="procAdminLogout" class="Controllers\Dashboard" method="GET,POST" />
|
||||
<!-- Maintenance -->
|
||||
<action name="procAdminRecompileCacheFile" class="Controllers\Maintenance\CacheReset" />
|
||||
<action name="dispAdminCleanupList" class="Controllers\Maintenance\Cleanup" />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue