Commit a068d81a authored by Dries's avatar Dries

- Fixed non-ANSI SQL query in path module

parent 1fb206d9
......@@ -60,7 +60,7 @@ function path_set_alias($path = NULL, $alias = NULL) {
// We have an insert:
if ($path_count == 0 && $alias_count == 0) {
db_query("INSERT INTO {url_alias} SET src = '%s', dst = '%s'", $path, $alias);
db_query("INSERT INTO {url_alias} (src, dst) VALUES ('%s', '%s')", $path, $alias);
drupal_rebuild_path_map();
}
else if ($path_count == 1 && $alias_count == 0) {
......
......@@ -60,7 +60,7 @@ function path_set_alias($path = NULL, $alias = NULL) {
// We have an insert:
if ($path_count == 0 && $alias_count == 0) {
db_query("INSERT INTO {url_alias} SET src = '%s', dst = '%s'", $path, $alias);
db_query("INSERT INTO {url_alias} (src, dst) VALUES ('%s', '%s')", $path, $alias);
drupal_rebuild_path_map();
}
else if ($path_count == 1 && $alias_count == 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment