Changeset 12272 for extensions/UserAdvManager/branches/2.30/ConfirmMail.php
- Timestamp:
- Sep 30, 2011, 1:51:10 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/UserAdvManager/branches/2.30/ConfirmMail.php
r12227 r12272 42 42 log_user($userid, false); 43 43 44 /* We have to get the user's language in database */ 44 // We have to get the user's language in database 45 // ---------------------------------------------- 45 46 $query = ' 46 47 SELECT language … … 50 51 $data = pwg_db_fetch_assoc(pwg_query($query)); 51 52 52 /* Check if user is already registered (profile changing) - If not (new registration), language is set to current gallery language */ 53 // Check if user is already registered (profile changing) - If not (new registration), language is set to current gallery language 54 // ------------------------------------------------------------------------------------------------------------------------------- 53 55 if (empty($data)) 54 56 { 55 /* And switch gallery to this language before using personalized and multilangual contents */ 57 // And switch gallery to this language before using personalized and multilangual contents 58 // --------------------------------------------------------------------------------------- 56 59 $language = pwg_get_session_var('lang_switch', $user['language']); 57 60 switch_lang_to($language); … … 59 62 else 60 63 { 61 /* And switch gallery to this language before using personalized and multilangual contents */ 64 // And switch gallery to this language before using personalized and multilangual contents 65 // --------------------------------------------------------------------------------------- 62 66 switch_lang_to($data['language']); 63 67 load_language('plugin.lang', UAM_PATH); … … 67 71 { 68 72 // Management of Extension flags ([username], [mygallery], [myurl]) 73 // ---------------------------------------------------------------- 69 74 $patterns[] = '#\[username\]#i'; 70 75 $replacements[] = $result['username']; … … 99 104 { 100 105 // Management of Extension flags ([username], [mygallery], [myurl]) 106 // ---------------------------------------------------------------- 101 107 $patterns[] = '#\[username\]#i'; 102 108 $replacements[] = $result['username'];
Note: See TracChangeset
for help on using the changeset viewer.