projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge updates: better name comparison.
[platal.git]
/
modules
/
search.php
diff --git
a/modules/search.php
b/modules/search.php
index
edf62ef
..
fc2b811
100644
(file)
--- a/
modules/search.php
+++ b/
modules/search.php
@@
-213,7
+213,7
@@
class SearchModule extends PLModule
$page->assign('public_directory',0);
}
$page->assign('public_directory',0);
}
-
private
function format_autocomplete(array $item)
+
static public
function format_autocomplete(array $item)
{
return $item['field'] . ' (' . $item['nb'] . ' camarade' . ($item['nb'] > 1 ? 's' : '') . ')';
}
{
return $item['field'] . ' (' . $item['nb'] . ' camarade' . ($item['nb'] > 1 ? 's' : '') . ')';
}
@@
-262,7
+262,7
@@
class SearchModule extends PLModule
'nb' => $aux[1],
'id' => $aux[2]
);
'nb' => $aux[1],
'id' => $aux[2]
);
- $item['value'] =
$this->
format_autocomplete($item);
+ $item['value'] =
self::
format_autocomplete($item);
array_push($list, $item);
}
}
array_push($list, $item);
}
}
@@
-292,7
+292,7
@@
class SearchModule extends PLModule
$to_cache = '';
foreach ($list as &$item) {
$to_cache .= $item['field'] . "\t" . $item['nb'] . "\t" . $item['id'] . "\n";
$to_cache = '';
foreach ($list as &$item) {
$to_cache .= $item['field'] . "\t" . $item['nb'] . "\t" . $item['id'] . "\n";
- $item['value'] =
$this->
format_autocomplete($item);
+ $item['value'] =
self::
format_autocomplete($item);
}
}
}
}
@@
-414,6
+414,7
@@
class SearchModule extends PLModule
$wp->buildCache();
$page->setTitle('Emploi et Carrières');
$wp->buildCache();
$page->setTitle('Emploi et Carrières');
+ $page->addJsLink('jquery.ui.xorg.js');
// Count mentors
$res = XDB::query("SELECT count(distinct pid) FROM profile_mentor_term");
// Count mentors
$res = XDB::query("SELECT count(distinct pid) FROM profile_mentor_term");