Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
a068d81a
Commit
a068d81a
authored
Nov 27, 2003
by
Dries Buytaert
Browse files
- Fixed non-ANSI SQL query in path module
parent
1fb206d9
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/path.module
View file @
a068d81a
...
...
@@ -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
)
{
...
...
modules/path/path.module
View file @
a068d81a
...
...
@@ -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
)
{
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment