Skip to content

Commit

Permalink
Hide redirected person IDs without brackets too.
Browse files Browse the repository at this point in the history
  • Loading branch information
dracos committed May 28, 2015
1 parent 956f408 commit 5310383
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion www/includes/easyparliament/searchengine.php
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,8 @@ public function SEARCHENGINE($query) {
for ($n=0; $n<$merged->rows(); $n++) {
$from_id = str_replace('uk.org.publicwhip/person/', '', $merged->field($n, 'gid_from'));
$to_id = str_replace('uk.org.publicwhip/person/', '', $merged->field($n, 'gid_to'));
$qd = preg_replace("#\(S$from_id OR S$to_id\)#", "S$to_id", $qd);
$qd = str_replace("(S$from_id OR S$to_id)", "S$to_id", $qd);
$qd = str_replace("S$from_id OR S$to_id", "S$to_id", $qd);
}

preg_match_all('#S(\d+)#', $qd, $m);
Expand Down

0 comments on commit 5310383

Please sign in to comment.