Adjust some parts of Context class for better integration with Router

This commit is contained in:
Kijin Sung 2020-06-12 14:54:05 +09:00
parent baddbd3cba
commit a680f89326
3 changed files with 28 additions and 20 deletions

View file

@ -211,7 +211,7 @@ class moduleModel extends module
*/
public static function getModuleInfoByMid($mid, $site_srl = 0, $columnList = array())
{
if(!$mid || ($mid && !preg_match("/^[a-z][a-z0-9_]+$/i", $mid)))
if(!$mid || ($mid && !preg_match("/^[a-z][a-z0-9_-]+$/i", $mid)))
{
return;
}