Skip to content

Commit 3f71d36

Browse files
committed
fix: invio mail CLI
1 parent 450bc52 commit 3f71d36

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

lib/functions.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -483,6 +483,11 @@ function session_set($name, mixed $value)
483483
*/
484484
function base_url()
485485
{
486+
// In modalità CLI, App::$baseurl è vuoto, quindi usiamo setting('Base URL')
487+
if (empty(App::$baseurl) && function_exists('setting')) {
488+
return rtrim(setting('Base URL'), '/');
489+
}
490+
486491
return App::$baseurl;
487492
}
488493

0 commit comments

Comments
 (0)