Skip to content
Snippets Groups Projects
Commit e8be7a34 authored by Andy Kirkham's avatar Andy Kirkham
Browse files

#217862 by Gabor Mayer

parent 688eced6
No related branches found
No related tags found
No related merge requests found
......@@ -232,6 +232,7 @@ function scheduler_cron() {
if (variable_get('scheduler_touch_'. $n->type, 0) == 1) {
$n->created = $node->utc_publish_on;
}
node_submit($n);
node_save($n);
//if this node is not to be unpublished, then we can delete the record
......@@ -258,6 +259,7 @@ function scheduler_cron() {
$n = node_load($node->nid);
$n->changed = $node->utc_publish_on;
$n->status = 0;
node_submit($n);
node_save($n);
db_query('DELETE FROM {scheduler} WHERE nid = %d', $n->nid);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment