Changeset 2237


Ignore:
Timestamp:
Mar 1, 2008, 4:29:29 PM (16 years ago)
Author:
patdenice
Message:

Merge from revision 2236.
801: add trigger in register_user function.
805: add 2 triggers in profile.php.
769: correct get_email_address_as_display_text function.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/functions_user.inc.php

    r2229 r2237  
    9494  }
    9595
     96  $errors = trigger_event('register_user_check',
     97              $errors,
     98              array(
     99                'login'=>$login,
     100                'password'=>$password,
     101                'email'=>$mail_address,
     102              )
     103            );
     104
    96105  // if no error until here, registration of the user
    97106  if (count($errors) == 0)
     
    12281237  else
    12291238  {
    1230     if (script_basename() == 'admin' and is_adviser())
     1239    if (defined('IN_ADMIN') and is_adviser())
    12311240    {
    12321241      return 'adviser.mode@'.$_SERVER['SERVER_NAME'];
  • trunk/profile.php

    r2229 r2237  
    4242  $userdata = $user;
    4343
     44  trigger_action('loc_begin_profile');
     45
    4446  save_profile_from_post($userdata, $errors);
    4547
     
    6769  }
    6870  $template->set_filename('profile', 'profile.tpl');
     71  trigger_action('loc_end_profile');
    6972  $template->parse('profile');
    7073  include(PHPWG_ROOT_PATH.'include/page_tail.php');
Note: See TracChangeset for help on using the changeset viewer.