diff --git a/rawilum/Shortcodes.php b/rawilum/Shortcodes.php index 0898c2b7..f75485e2 100644 --- a/rawilum/Shortcodes.php +++ b/rawilum/Shortcodes.php @@ -96,7 +96,7 @@ class Shortcodes $shortcodes = implode('|', array_map('preg_quote', array_keys(static::$shortcode_tags))); $pattern = "/(.?)\{([$shortcodes]+)(.*?)(\/)?\}(?(4)|(?:(.+?)\{\/\s*\\2\s*\}))?(.?)/s"; - return preg_replace_callback($pattern, array($this, '_handle'), $content); + return preg_replace_callback($pattern, 'static::_handle', $content); } /** diff --git a/rawilum/boot/shortcodes.php b/rawilum/boot/shortcodes.php index f0dc7527..4fd5de1d 100644 --- a/rawilum/boot/shortcodes.php +++ b/rawilum/boot/shortcodes.php @@ -1,5 +1,7 @@