summaryrefslogtreecommitdiff
path: root/actions/peoplesearch.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-07-09 17:50:11 -0400
committerEvan Prodromou <evan@prodromou.name>2008-07-09 17:50:11 -0400
commit0ec918604a9082170ee1dc81907d86a479dac1b2 (patch)
tree606046e9519527ad58c9d9b7b3fcf89c7e3ea257 /actions/peoplesearch.php
parent2d3ba299b86bca9e3a85d2abdd1921f969c9bfe1 (diff)
ignore case when highlighting
darcs-hash:20080709215011-84dde-29c80d3210e337614980b647c58b5720b7bfc35f.gz
Diffstat (limited to 'actions/peoplesearch.php')
-rw-r--r--actions/peoplesearch.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/actions/peoplesearch.php b/actions/peoplesearch.php
index a4e9308cf..cf79e52e9 100644
--- a/actions/peoplesearch.php
+++ b/actions/peoplesearch.php
@@ -132,7 +132,7 @@ class PeoplesearchAction extends Action {
}
function highlight($text, $terms) {
- $pattern = '/('.implode('|',array_map('htmlspecialchars', $terms)).')/';
+ $pattern = '/('.implode('|',array_map('htmlspecialchars', $terms)).')/i';
$result = preg_replace($pattern, '<strong>\\1</strong>', $text);
return $result;
}