From 81eb197429b83c1018c53d81192c4db48c9fd1fd Mon Sep 17 00:00:00 2001 From: Awilum Date: Thu, 31 May 2018 20:35:06 +0300 Subject: [PATCH] Content: new protected method initParsers() --- flextype/Content.php | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/flextype/Content.php b/flextype/Content.php index 6ff9e9d6..f5256d2c 100755 --- a/flextype/Content.php +++ b/flextype/Content.php @@ -92,11 +92,8 @@ class Content // Event: The page is not processed and not sent to the display. Event::dispatch('onCurrentPageBeforeProcessed'); - // Init Markdown - Content::initMarkdown(); - - // Init Shortcodes - Content::initShortcodes(); + // Init Parsers + Content::initParsers(); // Set current requested page data to global $page array Content::$page = Content::getPage(Http::getUriString()); @@ -501,6 +498,21 @@ class Content }); } + /** + * Init Parsers + * + * @access protected + * @return void + */ + protected static function initParsers() : void + { + // Init Markdown + Content::initMarkdown(); + + // Init Shortcodes + Content::initShortcodes(); + } + /** * Init Markdown *