added merge functions where not previously present; updated copyright date (finally); refactoring (backwards compatible);

This commit is contained in:
jrconlin
2010-11-04 22:38:25 -07:00
parent 11cbbcf23e
commit 17cf7ddff8
2 changed files with 28 additions and 15 deletions
+2 -3
View File
@@ -8,7 +8,7 @@
* version: 1.2
* url: http://unitedHeroes.net/OAuthSimple
*
* Copyright (c) 2009, unitedHeroes.net
* Copyright (c) 2010, unitedHeroes.net
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -185,8 +185,7 @@ class OAuthSimple {
if (!empty($signatures) && !is_array($signatures))
throw new OAuthSimpleException('Must pass dictionary array to OAuthSimple.signatures');
if (!empty($signatures))
foreach ($signatures as $sig=>$value)
$this->_secrets[$sig] = $value;
$signatures=array_merge($this->_secrets,$signatures);
// Aliases
if (isset($this->_secrets['api_key']))
$this->_secrets['consumer_key'] = $this->_secrets['api_key'];