From 4a695e5fc41e5073d688f424a4807816d1feeb13 Mon Sep 17 00:00:00 2001 From: Awilum Date: Sun, 3 Mar 2019 21:52:37 +0300 Subject: [PATCH] Flextype Core: SiteUrl Shortcodes - fixes. --- flextype/shortcodes/SiteUrlShortcode.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flextype/shortcodes/SiteUrlShortcode.php b/flextype/shortcodes/SiteUrlShortcode.php index 6daec452..661798b1 100644 --- a/flextype/shortcodes/SiteUrlShortcode.php +++ b/flextype/shortcodes/SiteUrlShortcode.php @@ -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(); });