Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
scheduler-3386861
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
scheduler-3386861
Commits
e8be7a34
Commit
e8be7a34
authored
16 years ago
by
Andy Kirkham
Browse files
Options
Downloads
Patches
Plain Diff
#217862
by Gabor Mayer
parent
688eced6
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scheduler.module
+2
-0
2 additions, 0 deletions
scheduler.module
with
2 additions
and
0 deletions
scheduler.module
+
2
−
0
View file @
e8be7a34
...
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment