Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
8a1b410a
Commit
8a1b410a
authored
Aug 30, 2001
by
Kjartan
Browse files
node.module
- fixed a listing bug.
parent
a8bfbe76
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/node.module
View file @
8a1b410a
...
...
@@ -200,7 +200,7 @@ function node_query($type = -1) {
$statuses
=
module_invoke
(
$name
,
"status"
);
if
(
is_array
(
$statuses
))
{
foreach
(
array_reverse
(
$statuses
)
as
$key
=>
$status
)
{
$queries
[]
=
array
(
"
$name
: status set to '
$status
'"
,
"WHERE type = '
$name
' AND status = '"
.
node_status
(
$status
)
.
"' ORDER BY timestamp DESC"
);
$queries
[]
=
array
(
"
$name
: status set to '
$status
'"
,
"WHERE type = '
$name
' AND
n.
status = '"
.
node_status
(
$status
)
.
"' ORDER BY timestamp DESC"
);
}
$queries
[]
=
array
(
"
$name
: scheduled to be posted"
,
"WHERE type = '
$name
' AND timestamp_posted > 0 ORDER BY timestamp DESC"
);
$queries
[]
=
array
(
"
$name
: scheduled to be queued"
,
"WHERE type = '
$name
' AND timestamp_queued > 0 ORDER BY timestamp DESC"
);
...
...
modules/node/node.module
View file @
8a1b410a
...
...
@@ -200,7 +200,7 @@ function node_query($type = -1) {
$statuses
=
module_invoke
(
$name
,
"status"
);
if
(
is_array
(
$statuses
))
{
foreach
(
array_reverse
(
$statuses
)
as
$key
=>
$status
)
{
$queries
[]
=
array
(
"
$name
: status set to '
$status
'"
,
"WHERE type = '
$name
' AND status = '"
.
node_status
(
$status
)
.
"' ORDER BY timestamp DESC"
);
$queries
[]
=
array
(
"
$name
: status set to '
$status
'"
,
"WHERE type = '
$name
' AND
n.
status = '"
.
node_status
(
$status
)
.
"' ORDER BY timestamp DESC"
);
}
$queries
[]
=
array
(
"
$name
: scheduled to be posted"
,
"WHERE type = '
$name
' AND timestamp_posted > 0 ORDER BY timestamp DESC"
);
$queries
[]
=
array
(
"
$name
: scheduled to be queued"
,
"WHERE type = '
$name
' AND timestamp_queued > 0 ORDER BY timestamp DESC"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment