3
3
/**
4
4
* CleanTalk joomla plugin
5
5
*
6
- * @version 3.3
6
+ * @version 3.4
7
7
* @package Cleantalk
8
8
* @subpackage Joomla
9
9
* @author CleanTalk (welcome@cleantalk.org)
@@ -22,7 +22,7 @@ class plgSystemAntispambycleantalk extends JPlugin {
22
22
/**
23
23
* Plugin version string for server
24
24
*/
25
- const ENGINE = 'joomla-33 ' ;
25
+ const ENGINE = 'joomla-34 ' ;
26
26
27
27
/**
28
28
* Default value for hidden field ct_checkjs
@@ -324,7 +324,10 @@ public function onAfterInitialise()
324
324
//print_r($_POST);
325
325
//die();
326
326
327
- 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 ' )
327
+ if (isset ($ _GET ['option ' ])&&$ _GET ['option ' ]=='com_rsform ' &&isset ($ _POST )&&sizeof ($ _POST )>0 &&!$ app ->isAdmin () ||
328
+ isset ($ _POST ['option ' ])&&$ _POST ['option ' ]=='com_virtuemart ' &&isset ($ _POST ['task ' ])&&$ _POST ['task ' ]=='saveUser ' ||
329
+ isset ($ _GET ['api_controller ' ])
330
+ )
328
331
{
329
332
$ sender_email = '' ;
330
333
$ sender_nickname = '' ;
@@ -1477,23 +1480,23 @@ private function getCTConfig() {
1477
1480
$ config ['general_contact_forms_test ' ] = '' ;
1478
1481
$ config ['relevance_test ' ] = '' ;
1479
1482
$ config ['user_token ' ] = '' ;
1480
- if (class_exists ('JParameter ' )) { //1.5
1483
+ /* if (class_exists('JParameter')) { //1.5
1481
1484
$jparam = new JParameter($plugin->params);
1482
1485
$config['apikey'] = $jparam->def('apikey', '');
1483
1486
$config['server'] = $jparam->def('server', '');
1484
1487
$config['jcomments_unpublished_nofications'] = $jparam->def('jcomments_unpublished_nofications', '');
1485
1488
$config['general_contact_forms_test'] = $jparam->def('general_contact_forms_test', '');
1486
1489
$config['relevance_test'] = $jparam->def('relevance_test', '');
1487
1490
$config['user_token'] = $jparam->def('user_token', '');
1488
- } else { //1.6+
1491
+ } else { //1.6+*/
1489
1492
$ jreg = new JRegistry ($ plugin ->params );
1490
1493
$ config ['apikey ' ] = $ jreg ->get ('apikey ' , '' );
1491
1494
$ config ['server ' ] = $ jreg ->get ('server ' , '' );
1492
1495
$ config ['jcomments_unpublished_nofications ' ] = $ jreg ->get ('jcomments_unpublished_nofications ' , '' );
1493
1496
$ config ['general_contact_forms_test ' ] = $ jreg ->get ('general_contact_forms_test ' , '' );
1494
1497
$ config ['relevance_test ' ] = $ jreg ->get ('relevance_test ' , '' );
1495
1498
$ config ['user_token ' ] = $ jreg ->get ('user_token ' , '' );
1496
- }
1499
+ // }
1497
1500
1498
1501
return $ config ;
1499
1502
}
0 commit comments