Skip to content

Commit

Permalink
2.5.1 release
Browse files Browse the repository at this point in the history
Updated changelog, small fix in readme, version bump and fix in logger.
  • Loading branch information
AdwinTrave committed Oct 12, 2015
1 parent 750f619 commit c69b6f0
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 8 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
Hybridauth Change log
=====================
2.5.1 - October 12 2015
Fixes:
#542 - [XING] updated provider to 1.1.0
#549 - Update Auth.php library version
#558 - [XING] Fix typo
#559 - [VKontakte] Fix warnings for getUserByResponse() for undefined City and Country
#560 - [Drupal module] Require OAuth.php only if not exist
#564 - Fix DateTime error in Logger

2.5.0 - September 7 2015
New:
#444 + #445 - Slack provider
Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ HybridAuth repository is made up of several projects:

- **HybridAuth Core library** includes OpenID, Facebook, Twitter, LinkedIn, Google, Yahoo, Windows Live, Foursquare and AOL.
- **The additional providers project** contains many others services
which you may want to use,
- **Examples and demos** contains five examples for you to test,
which you may want to use.

## Getting Started

Expand Down
6 changes: 3 additions & 3 deletions hybridauth/Hybrid/Auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/
class Hybrid_Auth {

public static $version = "2.5.0-dev";
public static $version = "2.5.1";

/**
* Configuration array
Expand Down Expand Up @@ -306,7 +306,7 @@ public static function getConnectedProviders() {

/**
* Return array listing all enabled providers as well as a flag if you are connected
*
*
* <code>
* array(
* 'Facebook' => array(
Expand Down Expand Up @@ -390,7 +390,7 @@ public static function getCurrentUrl($request_uri = true) {

$protocol = 'http://';

if ((isset($_SERVER['HTTPS']) && ( $_SERVER['HTTPS'] == 'on' || $_SERVER['HTTPS'] == 1 ))
if ((isset($_SERVER['HTTPS']) && ( $_SERVER['HTTPS'] == 'on' || $_SERVER['HTTPS'] == 1 ))
|| (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https'))
{
$protocol = 'https://';
Expand Down
6 changes: 3 additions & 3 deletions hybridauth/Hybrid/Logger.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function __construct() {
*/
public static function debug($message, $object = null) {
if (Hybrid_Auth::$config["debug_mode"] === true) {
$dt = new DateTime('now', new DateTimeZone( 'UTC' ));
$dt = new DateTime('now', new DateTimeZone( 'UTC' ));
file_put_contents(Hybrid_Auth::$config["debug_file"], implode(' -- ', array(
"DEBUG",
$_SERVER['REMOTE_ADDR'],
Expand All @@ -58,7 +58,7 @@ public static function debug($message, $object = null) {
*/
public static function info($message) {
if (in_array(Hybrid_Auth::$config["debug_mode"], array(true, 'info'), true)) {
$dt = new DateTime('now', new DateTimeZone( 'UTC' ));
$dt = new DateTime('now', new DateTimeZone( 'UTC' ));
file_put_contents(Hybrid_Auth::$config["debug_file"], implode(' -- ', array(
"INFO",
$_SERVER['REMOTE_ADDR'],
Expand All @@ -77,7 +77,7 @@ public static function info($message) {
*/
public static function error($message, $object = null) {
if (isset(Hybrid_Auth::$config["debug_mode"]) && in_array(Hybrid_Auth::$config["debug_mode"], array(true, 'info', 'error'), true)) {
$dt = new DateTime('now', new DateTimeZone( 'UTC' ));$dt = new DateTime;
$dt = new DateTime('now', new DateTimeZone( 'UTC' ));
file_put_contents(Hybrid_Auth::$config["debug_file"], implode(' -- ', array(
'ERROR',
$_SERVER['REMOTE_ADDR'],
Expand Down

0 comments on commit c69b6f0

Please sign in to comment.