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
5b1e1da2
Commit
5b1e1da2
authored
Jan 20, 2003
by
Dries
Browse files
- Tidied up a SQL query.
- Changed a "&" to a "&".
parent
fe72ab1c
Changes
1
Hide whitespace changes
Inline
Side-by-side
includes/common.inc
View file @
5b1e1da2
...
...
@@ -37,7 +37,7 @@ function error_handler($errno, $message, $filename, $line, $variables) {
function
watchdog
(
$type
,
$message
,
$link
=
NULL
)
{
global
$user
;
db_query
(
"INSERT INTO watchdog (uid, type, message, link, location, hostname, timestamp) VALUES ('
$user->ui
d
', '%s', '%s', '%s', '%s', '%s', '%s')"
,
$type
,
$message
,
$link
,
request_uri
(),
getenv
(
"REMOTE_ADDR"
),
time
());
db_query
(
"INSERT INTO watchdog (uid, type, message, link, location, hostname, timestamp) VALUES ('
%
d', '%s', '%s', '%s', '%s', '%s', '%s')"
,
$user
->
uid
,
$type
,
$message
,
$link
,
request_uri
(),
getenv
(
"REMOTE_ADDR"
),
time
());
}
function
throttle
(
$type
,
$rate
)
{
...
...
@@ -390,7 +390,7 @@ function drupal_goto($url) {
** Translate & to simply &
*/
$url
=
str_replace
(
"&"
,
"&"
,
$url
);
$url
=
str_replace
(
"&"
,
"&
amp;
"
,
$url
);
/*
** It is advised to use "drupal_goto()" instead of PHP's "header()" as
...
...
@@ -748,7 +748,7 @@ function url($url = NULL, $query = NULL) {
if
(
isset
(
$url
))
{
if
(
isset
(
$query
))
{
return
"?q=
$url
&
$query
"
;
return
"?q=
$url
&
amp;
$query
"
;
}
else
{
return
"?q=
$url
"
;
...
...
@@ -775,7 +775,7 @@ function l($text, $url, $attributes = array(), $query = NULL) {
}
function
field_get
(
$string
,
$name
)
{
ereg
(
",
$name
=([^,]+)"
,
",
$string
"
,
$regs
);
ereg
(
",
$name
=([^,]+)"
,
",
$string
"
,
$regs
);
return
$regs
[
1
];
}
...
...
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