Ignore:
Timestamp:
Jan 9, 2014, 7:55:29 PM (10 years ago)
Author:
mistic100
Message:

update for 2.6

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/oAuth/include/public_events.inc.php

    r24142 r26556  
    11<?php
    22defined('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 }
    223
    234/**
     
    5233    list($oauth_id) = pwg_db_fetch_row($result);
    5334    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);
    5536   
    5637    $redirect_to = get_root_url().'identification.php'; // variable used by identification.php
     
    9677        ));
    9778       
    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.');
    9980     
    10081      $oauth_id = $provider.'---'.$remote_user->identifier;
     
    141122    }
    142123    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());
    144125    }
    145126  }
     
    196177  }
    197178  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());
    199180  }
    200181}
     
    231212  }
    232213  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());
    234215  }
    235216}
     
    245226  $menu = &$menu_ref_arr[0]; 
    246227 
    247   if ( !$conf['oauth']['display_menubar'] or $menu->get_block('mbIdentification') == null )
     228  if (!$conf['oauth']['display_menubar'] or $menu->get_block('mbIdentification') == null)
    248229  {
    249230    return;
     
    293274  return str_replace($search, $search.$add, $content);
    294275}
    295 
    296 ?>
Note: See TracChangeset for help on using the changeset viewer.