commit 4bc7a3e61c15d9d032652470194a3c1c7a5bec66
parent a4cfec40bdc6b1b6166042312ddc0c4dfd68b105
Author: MTRNord <mtrnord1@gmail.com>
Date: Wed, 1 Apr 2015 20:13:31 +0200
not in the Api.php
Diffstat:
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/core/libs/OAuth2/src/fkooman/OAuth/Client/Api.php b/core/libs/OAuth2/src/fkooman/OAuth/Client/Api.php
@@ -35,9 +35,7 @@ class Api
public function __construct($clientConfigId, ClientConfigInterface $clientConfig, StorageInterface $tokenStorage, \Guzzle\Http\Client $httpClient)
{
- if (headers_sent()){
- echo "lol";
- }
+
$this->setClientConfigId($clientConfigId);
$this->setClientConfig($clientConfig);
$this->setTokenStorage($tokenStorage);
diff --git a/core/libs/OAuth2/src/fkooman/OAuth/Client/SessionStorage.php b/core/libs/OAuth2/src/fkooman/OAuth/Client/SessionStorage.php
@@ -21,6 +21,9 @@ class SessionStorage implements StorageInterface
{
public function __construct()
{
+ if (headers_sent()){
+ echo "lol";
+ }
if ("" === session_id()) {
// no session currently exists, start a new one
session_start();