mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-09-29 12:49:06 +02:00
Changed extractTags from protected to public
This commit is contained in:
parent
f17d594141
commit
970345b086
@ -204,7 +204,7 @@ class ShortcodeParser {
|
|||||||
* @return array - The list of tags found. When using an open/close pair, only one item will be in the array,
|
* @return array - The list of tags found. When using an open/close pair, only one item will be in the array,
|
||||||
* with "content" set to the text between the tags
|
* with "content" set to the text between the tags
|
||||||
*/
|
*/
|
||||||
protected function extractTags($content) {
|
public function extractTags($content) {
|
||||||
$tags = array();
|
$tags = array();
|
||||||
|
|
||||||
if(preg_match_all(self::tagrx(), $content, $matches, PREG_SET_ORDER | PREG_OFFSET_CAPTURE)) {
|
if(preg_match_all(self::tagrx(), $content, $matches, PREG_SET_ORDER | PREG_OFFSET_CAPTURE)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user