Ignore:
Timestamp:
Jul 11, 2006, 10:56:51 PM (18 years ago)
Author:
rub
Message:

Resolved Issue ID 0000456, 0000457, 0000459, 0000465:

o Fix bugs adviser mode

Merge BSF r1457:1458 into branch-1_6

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/branch-1_6/include/functions_user.inc.php

    r1332 r1459  
    648648  return ($user['adviser'] == 'true');
    649649}
     650
     651/*
     652 * Return mail address as display text
     653 * @return string
     654*/
     655function get_email_address_as_display_text($email_address)
     656{
     657  global $conf;
     658
     659  if (is_adviser())
     660  {
     661    return 'adviser.mode@'.$_SERVER['SERVER_NAME'];
     662  }
     663  else
     664  {
     665    return $email_address;
     666  }
     667}
     668
    650669?>
Note: See TracChangeset for help on using the changeset viewer.