a lot of session fixes... I'm sure this breaks something somewhere though.
This commit is contained in:
parent
279233b367
commit
0c177bacb1
10 changed files with 38 additions and 24 deletions
|
|
@ -21,7 +21,7 @@ An abstract class for all payment plugins to extend.
|
|||
|
||||
Invoking goes as follows:
|
||||
|
||||
$plugin = WebGUI::Commerce::Payment->init('MyPlugin');
|
||||
$plugin = WebGUI::Commerce::Payment->init($session,'MyPlugin');
|
||||
|
||||
=head1 METHODS
|
||||
|
||||
|
|
@ -291,7 +291,8 @@ sub load {
|
|||
$load = "use $cmd";
|
||||
eval($load);
|
||||
$session->errorHandler->warn("Payment plugin failed to compile: $cmd.".$@) if($@);
|
||||
$plugin = eval($cmd."->init");
|
||||
$plugin = eval($cmd.'->init($session)');
|
||||
|
||||
$session->errorHandler->warn("Couldn't instantiate payment plugin: $cmd.".$@) if($@);
|
||||
return $plugin;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue