Now displaying something sensible in result heading for Q_RANGE searches
This commit is contained in:
committed by
Martin Monperrus
parent
19a3335597
commit
2a9e852e4d
@@ -2483,6 +2483,12 @@ function query2title(&$query) {
|
|||||||
$v = preg_replace('/[$^]/','',$v);
|
$v = preg_replace('/[$^]/','',$v);
|
||||||
}
|
}
|
||||||
if($k == Q_KEYS) { $v=json_encode(array_values($v)); }
|
if($k == Q_KEYS) { $v=json_encode(array_values($v)); }
|
||||||
|
if($k == Q_RANGE) {
|
||||||
|
foreach ($v as &$range) {
|
||||||
|
$range = $range[0].'-'.$range[1];
|
||||||
|
}
|
||||||
|
$v = join($v, ',');
|
||||||
|
}
|
||||||
$headers[$k] = __(ucwords($k)).': '.ucwords(htmlspecialchars($v));
|
$headers[$k] = __(ucwords($k)).': '.ucwords(htmlspecialchars($v));
|
||||||
}
|
}
|
||||||
// special cases
|
// special cases
|
||||||
|
|||||||
Reference in New Issue
Block a user