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
b6e8e391
Commit
b6e8e391
authored
Jul 22, 2008
by
Dries
Browse files
- Patch
#226880
by hswong3i: made SQL ANSI compliant.
parent
0a73613d
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/translation/translation.module
View file @
b6e8e391
...
...
@@ -226,7 +226,7 @@ function translation_nodeapi(&$node, $op, $teaser, $page) {
db_query
(
"UPDATE
{
node
}
SET tnid = %d, translate = %d WHERE nid = %d"
,
$node
->
tnid
,
$node
->
translation
[
'status'
],
$node
->
nid
);
if
(
!
empty
(
$node
->
translation
[
'retranslate'
]))
{
// This is the source node, asking to mark all translations outdated.
db_query
(
"UPDATE
{
node
}
SET translate = 1 WHERE tnid = %d AND nid
!=
%d"
,
$node
->
tnid
,
$node
->
nid
);
db_query
(
"UPDATE
{
node
}
SET translate = 1 WHERE tnid = %d AND nid
<>
%d"
,
$node
->
tnid
,
$node
->
nid
);
}
}
break
;
...
...
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