mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 17:51:40 +09:00
Remove deleted routes from action_forward table
This commit is contained in:
parent
aef258e48a
commit
70c2bfe5df
2 changed files with 30 additions and 0 deletions
|
|
@ -1524,6 +1524,19 @@ class moduleModel extends module
|
|||
$info->need_update = true;
|
||||
}
|
||||
}
|
||||
|
||||
// Clean up any action-forward routes that are no longer needed.
|
||||
foreach ($forwardable_routes as $action_name => $route_info)
|
||||
{
|
||||
unset($action_forward[$action_name]);
|
||||
}
|
||||
foreach ($action_forward as $action_name => $forward_info)
|
||||
{
|
||||
if ($forward_info->module === $module_name && $forward_info->route_regexp !== null)
|
||||
{
|
||||
$info->need_update = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
$list[] = $info;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue