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
d6adac74
Commit
d6adac74
authored
Jan 21, 2003
by
Dries
Browse files
- Tidied up some SQL queries.
parent
966f0811
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/locale.module
View file @
d6adac74
...
...
@@ -60,14 +60,14 @@ function locale_link($type) {
}
function
locale_delete
(
$lid
)
{
db_query
(
"DELETE FROM locales WHERE lid = '
$lid
'"
);
db_query
(
"DELETE FROM locales WHERE lid = '
%d'"
,
$lid
);
locale_refresh_cache
();
}
function
locale_save
(
$lid
)
{
global
$edit
;
foreach
(
$edit
as
$key
=>
$value
)
{
db_query
(
"UPDATE locales SET
$key
= '%s' WHERE lid = '
$li
d
'"
,
$value
);
db_query
(
"UPDATE locales SET
$key
= '%s' WHERE lid = '
%
d'"
,
$value
,
$lid
);
}
locale_refresh_cache
();
// delete form data so it will remember where it came from
...
...
@@ -277,4 +277,4 @@ function locale($string) {
return
$string
;
}
?>
\ No newline at end of file
?>
modules/locale/locale.module
View file @
d6adac74
...
...
@@ -60,14 +60,14 @@ function locale_link($type) {
}
function
locale_delete
(
$lid
)
{
db_query
(
"DELETE FROM locales WHERE lid = '
$lid
'"
);
db_query
(
"DELETE FROM locales WHERE lid = '
%d'"
,
$lid
);
locale_refresh_cache
();
}
function
locale_save
(
$lid
)
{
global
$edit
;
foreach
(
$edit
as
$key
=>
$value
)
{
db_query
(
"UPDATE locales SET
$key
= '%s' WHERE lid = '
$li
d
'"
,
$value
);
db_query
(
"UPDATE locales SET
$key
= '%s' WHERE lid = '
%
d'"
,
$value
,
$lid
);
}
locale_refresh_cache
();
// delete form data so it will remember where it came from
...
...
@@ -277,4 +277,4 @@ function locale($string) {
return
$string
;
}
?>
\ No newline at end of file
?>
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