mirror of
https://github.com/flextype/flextype.git
synced 2025-08-09 14:46:53 +02:00
Fix Shortcodes
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -1,5 +1,7 @@
|
||||
<?php namespace Rawilum;
|
||||
|
||||
use Url;
|
||||
|
||||
/**
|
||||
* @package Rawilum
|
||||
*
|
||||
|
Reference in New Issue
Block a user