Fix Context::getRequestUri() returning null when used in CLI context

This commit is contained in:
Kijin Sung 2023-06-16 15:35:18 +09:00
parent 180ed429cf
commit e02c5a04d3

View file

@ -1814,7 +1814,7 @@ class Context
// Check HTTP Request
if(!isset($_SERVER['SERVER_PROTOCOL']))
{
return;
return self::getDefaultUrl();
}
$site_module_info = self::get('site_module_info');