Permalink
Browse files

message_history_link() - replace use sql_concat() and sql_like()

  • Loading branch information...
martinlanghoff
martinlanghoff committed Sep 26, 2006
1 parent 2717646 commit 92a2d92a82e47638a604656c332d2c957560e891
Showing with 2 additions and 13 deletions.
  1. +2 −13 message/lib.php
View
@@ -664,19 +664,8 @@ function message_history_link($userid1, $userid2=0, $returnstr=false, $keywords=
function message_search_users($courseid, $searchtext, $sort='', $exceptions='') {
global $CFG;
- switch ($CFG->dbtype) {
- case 'mysql':
- $fullname = ' CONCAT(u.firstname," ",u.lastname) ';
- $LIKE = 'LIKE';
- break;
- case 'postgres7':
- $fullname = " u.firstname||' '||u.lastname ";
- $LIKE = 'ILIKE';
- break;
- default:
- $fullname = ' u.firstname||" "||u.lastname ';
- $LIKE = 'ILIKE';
- }
+ $fullname = sql_fullname();
+ $LIKE = sql_like();
if (!empty($exceptions)) {
$except = ' AND u.id NOT IN ('. $exceptions .') ';

0 comments on commit 92a2d92

Please sign in to comment.