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
89458155
Commit
89458155
authored
Jul 14, 2006
by
drumm
Browse files
#68617
by zen, remove trailing ampersand from tablesort URLs.
parent
7d9f57ff
Changes
1
Hide whitespace changes
Inline
Side-by-side
includes/tablesort.inc
View file @
89458155
...
...
@@ -74,7 +74,11 @@ function tablesort_header($cell, $header, $ts) {
$ts
[
'sort'
]
=
'asc'
;
$image
=
''
;
}
$cell
[
'data'
]
=
l
(
$cell
[
'data'
]
.
$image
,
$_GET
[
'q'
],
array
(
'title'
=>
$title
),
'sort='
.
$ts
[
'sort'
]
.
'&order='
.
urlencode
(
$cell
[
'data'
])
.
'&'
.
$ts
[
'query_string'
],
NULL
,
FALSE
,
TRUE
);
if
(
!
empty
(
$ts
[
'query_string'
]))
{
$ts
[
'query_string'
]
=
'&'
.
$ts
[
'query_string'
];
}
$cell
[
'data'
]
=
l
(
$cell
[
'data'
]
.
$image
,
$_GET
[
'q'
],
array
(
'title'
=>
$title
),
'sort='
.
$ts
[
'sort'
]
.
'&order='
.
urlencode
(
$cell
[
'data'
])
.
$ts
[
'query_string'
],
NULL
,
FALSE
,
TRUE
);
unset
(
$cell
[
'field'
],
$cell
[
'sort'
]);
}
...
...
@@ -183,5 +187,3 @@ function tablesort_get_sort($headers) {
}
return
'asc'
;
}
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