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
|
// Execute the scheduler
|
||||||
if ($pages->scheduler()) {
|
if ($pages->scheduler()) {
|
||||||
|
// Execute plugins with the hook afterPageCreate
|
||||||
|
Theme::plugins('afterPageCreate');
|
||||||
|
|
||||||
reindexTags();
|
reindexTags();
|
||||||
reindexCategories();
|
reindexCategories();
|
||||||
|
|
||||||
|
|
|
@ -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 = '';
|
||||||
|
|
Loading…
Reference in New Issue