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

Fix Shortcodes

This commit is contained in:
Awilum
2018-03-17 14:59:36 +03:00
parent 2452ba2244
commit bc54360735
2 changed files with 3 additions and 1 deletions

View File

@@ -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);
}
/**

View File

@@ -1,5 +1,7 @@
<?php namespace Rawilum;
use Url;
/**
* @package Rawilum
*