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:
@@ -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();
|
||||
});
|
||||
|
Reference in New Issue
Block a user