Execute plugins with the hook afterPageCreate after the scheduler

This commit is contained in:
Diego Najar 2018-10-20 13:36:13 +02:00
parent a07a0fe346
commit f39cc831b1
2 changed files with 6 additions and 2 deletions

View File

@ -37,6 +37,9 @@ $staticContent = $staticPages = buildStaticPages();
// Execute the scheduler // Execute the scheduler
if ($pages->scheduler()) { if ($pages->scheduler()) {
// Execute plugins with the hook afterPageCreate
Theme::plugins('afterPageCreate');
reindexTags(); reindexTags();
reindexCategories(); reindexCategories();

View File

@ -20,7 +20,8 @@ class Pages extends dbJSON {
'template'=>'', 'template'=>'',
'noindex'=>false, 'noindex'=>false,
'nofollow'=>false, 'nofollow'=>false,
'noarchive'=>false 'noarchive'=>false,
'custom'=>array()
); );
function __construct() function __construct()
@ -55,7 +56,7 @@ class Pages extends dbJSON {
{ {
$row = array(); $row = array();
// Check values on args and set default values if not exists // Predefined values
foreach ($this->dbFields as $field=>$value) { foreach ($this->dbFields as $field=>$value) {
if ($field=='tags') { if ($field=='tags') {
$tags = ''; $tags = '';