summaryrefslogtreecommitdiff
path: root/actions/peoplesearch.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-02-18 09:35:59 -0500
committerEvan Prodromou <evan@controlyourself.ca>2009-02-18 09:35:59 -0500
commitd8b6762e6dcb776571797f51d7c7d4cb99c9ef31 (patch)
treec284c43068daea8a177a31198e3376cb370d01b4 /actions/peoplesearch.php
parentdfd08519d6cd7719290d2652394eeadbb4704f80 (diff)
move peoplesearchresults to its own module
Diffstat (limited to 'actions/peoplesearch.php')
-rw-r--r--actions/peoplesearch.php26
1 files changed, 1 insertions, 25 deletions
diff --git a/actions/peoplesearch.php b/actions/peoplesearch.php
index 615201c46..14177fcf0 100644
--- a/actions/peoplesearch.php
+++ b/actions/peoplesearch.php
@@ -86,33 +86,9 @@ class PeoplesearchAction extends SearchAction
}
$profile->free();
-
+
$this->pagination($page > 1, $cnt > PROFILES_PER_PAGE,
$page, 'peoplesearch', array('q' => $q));
}
}
-class PeopleSearchResults extends ProfileList
-{
- var $terms = null;
- var $pattern = null;
-
- function __construct($profile, $terms, $action)
- {
- parent::__construct($profile, $terms, $action);
- $this->terms = array_map('preg_quote',
- array_map('htmlspecialchars', $terms));
- $this->pattern = '/('.implode('|',$terms).')/i';
- }
-
- function highlight($text)
- {
- return preg_replace($this->pattern, '<strong>\\1</strong>', htmlspecialchars($text));
- }
-
- function isReadOnly()
- {
- return true;
- }
-}
-