Skip to content
Snippets Groups Projects
Commit b6e8e391 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #226880 by hswong3i: made SQL ANSI compliant.

parent 0a73613d
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -226,7 +226,7 @@ function translation_nodeapi(&$node, $op, $teaser, $page) { ...@@ -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); db_query("UPDATE {node} SET tnid = %d, translate = %d WHERE nid = %d", $node->tnid, $node->translation['status'], $node->nid);
if (!empty($node->translation['retranslate'])) { if (!empty($node->translation['retranslate'])) {
// This is the source node, asking to mark all translations outdated. // 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; break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment