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

Content: new protected method initParsers()

This commit is contained in:
Awilum
2018-05-31 20:35:06 +03:00
parent fd445d7386
commit 81eb197429

View File

@@ -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
*