]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
ignore case when highlighting
authorEvan Prodromou <evan@prodromou.name>
Wed, 9 Jul 2008 21:50:11 +0000 (17:50 -0400)
committerEvan Prodromou <evan@prodromou.name>
Wed, 9 Jul 2008 21:50:11 +0000 (17:50 -0400)
darcs-hash:20080709215011-84dde-29c80d3210e337614980b647c58b5720b7bfc35f.gz

actions/peoplesearch.php

index a4e9308cf64ce59042929ef2baa005c021cb82f6..cf79e52e987e4588c957af37e83f0b196408d78f 100644 (file)
@@ -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;
        }