Skip to content

Commit

Permalink
Fix for one page checkout
Browse files Browse the repository at this point in the history
  • Loading branch information
VladCleantalk committed Sep 11, 2015
1 parent 84062e7 commit da55603
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions antispambycleantalk.php
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,10 @@ public function onAfterInitialise()
//print_r($_POST);
//die();

if(isset($_GET['option'])&&$_GET['option']=='com_rsform'&&isset($_POST)&&sizeof($_POST)>0&&!$app->isAdmin() || isset($_POST['option'])&&$_POST['option']=='com_virtuemart'&&isset($_POST['task'])&&$_POST['task']=='saveUser')
if(isset($_GET['option'])&&$_GET['option']=='com_rsform'&&isset($_POST)&&sizeof($_POST)>0&&!$app->isAdmin() ||
isset($_POST['option'])&&$_POST['option']=='com_virtuemart'&&isset($_POST['task'])&&$_POST['task']=='saveUser' ||
isset($_GET['api_controller'])
)
{
$sender_email = '';
$sender_nickname = '';
Expand Down Expand Up @@ -1477,23 +1480,23 @@ private function getCTConfig() {
$config['general_contact_forms_test'] = '';
$config['relevance_test'] = '';
$config['user_token'] = '';
if (class_exists('JParameter')) { //1.5
/*if (class_exists('JParameter')) { //1.5
$jparam = new JParameter($plugin->params);
$config['apikey'] = $jparam->def('apikey', '');
$config['server'] = $jparam->def('server', '');
$config['jcomments_unpublished_nofications'] = $jparam->def('jcomments_unpublished_nofications', '');
$config['general_contact_forms_test'] = $jparam->def('general_contact_forms_test', '');
$config['relevance_test'] = $jparam->def('relevance_test', '');
$config['user_token'] = $jparam->def('user_token', '');
} else { //1.6+
} else { //1.6+*/
$jreg = new JRegistry($plugin->params);
$config['apikey'] = $jreg->get('apikey', '');
$config['server'] = $jreg->get('server', '');
$config['jcomments_unpublished_nofications'] = $jreg->get('jcomments_unpublished_nofications', '');
$config['general_contact_forms_test'] = $jreg->get('general_contact_forms_test', '');
$config['relevance_test'] = $jreg->get('relevance_test', '');
$config['user_token'] = $jreg->get('user_token', '');
}
//}

return $config;
}
Expand Down

0 comments on commit da55603

Please sign in to comment.