projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fusion: strip leading particules from names when comparing them
[platal.git]
/
modules
/
search.php
diff --git
a/modules/search.php
b/modules/search.php
index
fc2b811
..
e3bfee7
100644
(file)
--- a/
modules/search.php
+++ b/
modules/search.php
@@
-1,6
+1,6
@@
<?php
/***************************************************************************
<?php
/***************************************************************************
- * Copyright (C) 2003-201
1
Polytechnique.org *
+ * Copyright (C) 2003-201
4
Polytechnique.org *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
@@
-158,8
+158,8
@@
class SearchModule extends PLModule
$networks[0] = '-';
ksort($networks);
$page->assign('networking_types', $networks);
$networks[0] = '-';
ksort($networks);
$page->assign('networking_types', $networks);
- $origin_corps_list = DirEnum::getOptions(DirEnum::
CURRENT
CORPS);
- $current_corps_list = DirEnum::getOptions(DirEnum::
ORIGIN
CORPS);
+ $origin_corps_list = DirEnum::getOptions(DirEnum::
ORIGIN
CORPS);
+ $current_corps_list = DirEnum::getOptions(DirEnum::
CURRENT
CORPS);
$corps_rank_list = DirEnum::getOptions(DirEnum::CORPSRANKS);
$origin_corps_list[0] = '-';
$current_corps_list[0] = '-';
$corps_rank_list = DirEnum::getOptions(DirEnum::CORPSRANKS);
$origin_corps_list[0] = '-';
$current_corps_list[0] = '-';
@@
-424,6
+424,12
@@
class SearchModule extends PLModule
require_once 'ufbuilder.inc.php';
$ufb = new UFB_MentorSearch();
if (!$ufb->isEmpty()) {
require_once 'ufbuilder.inc.php';
$ufb = new UFB_MentorSearch();
if (!$ufb->isEmpty()) {
+
+ // Search query is logged
+ if (S::logged() && !Env::has('page')) {
+ S::logger()->log('search_referent', 'adv=' . var_export($_GET, true));
+ }
+
require_once 'userset.inc.php';
$ufc = $ufb->getUFC();
$set = new ProfileSet($ufc);
require_once 'userset.inc.php';
$ufc = $ufb->getUFC();
$set = new ProfileSet($ufc);
@@
-465,5
+471,5
@@
class SearchModule extends PLModule
}
}
}
}
-// vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8:
+// vim:set et sw=4 sts=4 sws=4 foldmethod=marker
f
enc=utf-8:
?>
?>