|
@ -46,7 +46,12 @@ class Plugin extends PluginBase |
|
|
{ |
|
|
{ |
|
|
Event::listen('cms.page.postprocess', function($controller, $url, $page, $dataHolder) { |
|
|
Event::listen('cms.page.postprocess', function($controller, $url, $page, $dataHolder) { |
|
|
|
|
|
|
|
|
|
|
|
// Only parse strings, so that we don't interrupt
|
|
|
|
|
|
// ajax responses that are in object or array form
|
|
|
|
|
|
if (is_string($dataHolder->content)) |
|
|
|
|
|
{ |
|
|
$dataHolder->content = \Shortcode::parse($dataHolder->content); |
|
|
$dataHolder->content = \Shortcode::parse($dataHolder->content); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|