Skip to content

Commit 250fcac

Browse files
authored
Merge pull request #9 from CleanTalk/cscart-integration
Cscart integration
2 parents 21b2c7a + 82960ff commit 250fcac

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ php-uni
22
=======
33
[![Build Status](https://travis-ci.org/CleanTalk/php-uni.svg)](https://travis-ci.org/CleanTalk/php-uni)
44

5-
# Version 2.5
5+
# Version 2.5.3
66

77
Module for any CMS
88
## Installation

cleantalk/inc/common.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
<?php
22

3-
define( 'CLEANTALK_INITIAL_INCLUDE_PATH', get_include_path() );
43
define('APBCT_PLUGIN', 'uni');
5-
define('APBCT_VERSION', '2.5.2');
4+
define('APBCT_VERSION', '2.5.3');
65
define('APBCT_AGENT', APBCT_PLUGIN . '-' . str_replace( '.', '', APBCT_VERSION ) );
76
define('APBCT_USER_AGENT', 'Cleantalk-Antispam-Universal-Plugin/' . APBCT_VERSION);
87

@@ -11,7 +10,7 @@ function apbct_set_include_path(){
1110
}
1211

1312
function apbct_restore_include_path(){
14-
set_include_path( CLEANTALK_INITIAL_INCLUDE_PATH );
13+
set_include_path( get_include_path() );
1514
}
1615

1716
$ds = DIRECTORY_SEPARATOR;

cleantalk/inc/functions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ function apbct_get_fields_any($arr, $message=array(), $email = null, $nickname =
382382
$message[$prev_key.$key] = $value;
383383
}
384384

385-
}else if(!is_object($value)&&@get_class($value)!='WP_User'){
385+
}else if(!is_object($value)){
386386

387387
$prev_key_original = $prev_key;
388388
$prev_key = ($prev_key === '' ? $key.'_' : $prev_key.$key.'_');

0 commit comments

Comments
 (0)