mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 02:14:13 +00:00
Move the ?? into system/Core/Config.php to do not fail if the local_url config entry is missing.
This commit is contained in:
@@ -335,7 +335,7 @@ class CI_Config {
|
||||
*/
|
||||
public function local_url($uri = '', $protocol = NULL)
|
||||
{
|
||||
$local_url = $this->slash_item('local_url');
|
||||
$local_url = $this->slash_item('local_url') ?? $this->slash_item('base_url');
|
||||
if (isset($protocol))
|
||||
{
|
||||
// For protocol-relative links
|
||||
|
||||
@@ -106,7 +106,7 @@ if ( ! function_exists('local_url'))
|
||||
|
||||
function local_url($uri = '', $protocol = NULL)
|
||||
{
|
||||
return get_instance()->config->local_url($uri, $protocol) ?? get_instance()->config->base_url($uri, $protocol);
|
||||
return get_instance()->config->local_url($uri, $protocol);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user