Changeset 26556 for extensions/oAuth/include/public_events.inc.php
- Timestamp:
- Jan 9, 2014, 7:55:29 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/oAuth/include/public_events.inc.php
r24142 r26556 1 1 <?php 2 2 defined('OAUTH_PATH') or die('Hacking attempt!'); 3 4 function oauth_anti_lightbox($tpl_thumbnails_var)5 {6 global $template, $page;7 8 if ($page['section'] == 'collections' && !empty($template->css_by_priority[0]))9 {10 foreach ($template->css_by_priority[0] as $file)11 {12 if (strpos($file[0], 'colorbox.css') !== false)13 {14 $template->assign('OAUTH_NO_LIGHTBOX', true);15 break;16 }17 }18 }19 20 return $tpl_thumbnails_var;21 }22 3 23 4 /** … … 52 33 list($oauth_id) = pwg_db_fetch_row($result); 53 34 list($provider) = explode('---', $oauth_id); 54 $_SESSION['page_errors'][] = sprintf(l10n('You registered with a %s account, please sign in with the same account.'), $provider);35 $_SESSION['page_errors'][] = l10n('You registered with a %s account, please sign in with the same account.', $provider); 55 36 56 37 $redirect_to = get_root_url().'identification.php'; // variable used by identification.php … … 96 77 )); 97 78 98 array_push($page['infos'], l10n('Your registration is almost done, please complete the registration form.'));79 $page['infos'][] = l10n('Your registration is almost done, please complete the registration form.'); 99 80 100 81 $oauth_id = $provider.'---'.$remote_user->identifier; … … 141 122 } 142 123 catch (Exception $e) { 143 array_push($page['errors'], sprintf(l10n('An error occured, please contact the gallery owner. <i>Error code : %s</i>'), $e->getCode()));124 $page['errors'][] = l10n('An error occured, please contact the gallery owner. <i>Error code : %s</i>', $e->getCode()); 144 125 } 145 126 } … … 196 177 } 197 178 catch (Exception $e) { 198 array_push($page['errors'], sprintf(l10n('An error occured, please contact the gallery owner. <i>Error code : %s</i>'), $e->getCode()));179 $page['errors'][] = l10n('An error occured, please contact the gallery owner. <i>Error code : %s</i>', $e->getCode()); 199 180 } 200 181 } … … 231 212 } 232 213 catch (Exception $e) { 233 $_SESSION['page_errors'][] = sprintf(l10n('An error occured, please contact the gallery owner. <i>Error code : %s</i>'), $e->getCode());214 $_SESSION['page_errors'][] = l10n('An error occured, please contact the gallery owner. <i>Error code : %s</i>', $e->getCode()); 234 215 } 235 216 } … … 245 226 $menu = &$menu_ref_arr[0]; 246 227 247 if ( !$conf['oauth']['display_menubar'] or $menu->get_block('mbIdentification') == null)228 if (!$conf['oauth']['display_menubar'] or $menu->get_block('mbIdentification') == null) 248 229 { 249 230 return; … … 293 274 return str_replace($search, $search.$add, $content); 294 275 } 295 296 ?>
Note: See TracChangeset
for help on using the changeset viewer.