Skip to content

Commit

Permalink
Fixed config loading problem
Browse files Browse the repository at this point in the history
  • Loading branch information
calvinfroedge committed Nov 6, 2012
1 parent 97485ad commit 0b04f33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/payments.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ public function __call($method, $params)
$gateway = $params[0];
$args = $params[1];

if(file_exists(dirname(__DIR__)."/config/drivers/$gateway"))
if(file_exists(dirname(__DIR__)."/config/drivers/{$gateway}.php"))
{
$this->ci->load->config("drivers/$gateway");
$this->ci->load->config("drivers/{$gateway}.php");
$config = $this->ci->config->item($gateway);
}
else
Expand Down

0 comments on commit 0b04f33

Please sign in to comment.