Skip to content

Commit

Permalink
Fix Context::getRequestUri() returning null when used in CLI context
Browse files Browse the repository at this point in the history
  • Loading branch information
kijin committed Jun 16, 2023
1 parent 180ed42 commit e02c5a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/context/Context.class.php
Expand Up @@ -1814,7 +1814,7 @@ public static function getRequestUri($ssl_mode = FOLLOW_REQUEST_SSL, $domain = n
// Check HTTP Request
if(!isset($_SERVER['SERVER_PROTOCOL']))
{
return;
return self::getDefaultUrl();
}

$site_module_info = self::get('site_module_info');
Expand Down

0 comments on commit e02c5a0

Please sign in to comment.