Execute plugins with the hook afterPageCreate after the scheduler
This commit is contained in:
parent
a07a0fe346
commit
f39cc831b1
@ -37,6 +37,9 @@ $staticContent = $staticPages = buildStaticPages();
|
||||
|
||||
// Execute the scheduler
|
||||
if ($pages->scheduler()) {
|
||||
// Execute plugins with the hook afterPageCreate
|
||||
Theme::plugins('afterPageCreate');
|
||||
|
||||
reindexTags();
|
||||
reindexCategories();
|
||||
|
||||
|
@ -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 = '';
|
||||
|
Loading…
Reference in New Issue
Block a user