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
if ($pages->scheduler()) {
// Execute plugins with the hook afterPageCreate
Theme::plugins('afterPageCreate');
reindexTags();
reindexCategories();

View File

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