1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-12 16:14:16 +02:00

Flextype Core: SiteUrl Shortcodes - fixes.

This commit is contained in:
Awilum
2019-03-03 21:52:37 +03:00
parent f818f2f707
commit 4a695e5fc4

View File

@@ -16,6 +16,6 @@ use Thunder\Shortcode\ShortcodeFacade;
use Thunder\Shortcode\Shortcode\ShortcodeInterface;
// Shortcode: [site_url]
$flextype['shortcodes']->addHandler('site_url', function() use ($flextype) {
$flextype['shortcodes']->addHandler('site_url', function() {
return \Slim\Http\Uri::createFromEnvironment(new \Slim\Http\Environment($_SERVER))->getBaseUrl();
});