diff --git a/CHANGELOG b/CHANGELOG index 35295e1..fa24dae 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,7 @@ +Version 1.51 August 31, 2015 +------------------------------ +- Fixed notice "Undefined index: template_layers" when download attachment + Version 1.50 August 30, 2015 ------------------------------ - Added SMF 2.1 Beta compatibility diff --git a/CleantalkMod.php b/CleantalkMod.php index de26d70..ebb386c 100644 --- a/CleantalkMod.php +++ b/CleantalkMod.php @@ -16,7 +16,7 @@ require_once(dirname(__FILE__) . '/cleantalk.class.php'); // define same CleanTalk options -define('CT_AGENT_VERSION', 'smf-150'); +define('CT_AGENT_VERSION', 'smf-151'); define('CT_SERVER_URL', 'http://moderate.cleantalk.org'); define('CT_DEBUG', false); @@ -315,6 +315,7 @@ function cleantalk_load() { global $context, $user_info; if ( + isset($context['template_layers']) && is_array($context['template_layers']) && in_array('body', $context['template_layers']) && ($user_info['is_guest'] || $user_info['posts'] == 0) && @@ -331,6 +332,7 @@ function cleantalk_exit() { global $context, $user_info; if ( + isset($context['template_layers']) && is_array($context['template_layers']) && in_array('body', $context['template_layers']) && ($user_info['is_guest'] || $user_info['posts'] == 0) diff --git a/RoboFile.php b/RoboFile.php index d67f261..3ca074c 100644 --- a/RoboFile.php +++ b/RoboFile.php @@ -8,7 +8,7 @@ class RoboFile extends \Robo\Tasks { const PACKAGE = 'antispam_cleantalk_smf'; - const VERSION = '1.50'; + const VERSION = '1.51'; /** * Build SMF zip-package diff --git a/package-info.xml b/package-info.xml index 9025a9c..d4a6590 100644 --- a/package-info.xml +++ b/package-info.xml @@ -3,7 +3,7 @@ cleantalk:antispam Anti-spam by CleanTalk - 1.50 + 1.51 modification readme.txt @@ -77,4 +77,9 @@ + + + + + \ No newline at end of file diff --git a/readme.txt b/readme.txt index bf6bc52..5e5b7b4 100644 --- a/readme.txt +++ b/readme.txt @@ -1,5 +1,5 @@ MOD [b]Anti-spam by CleanTalk[/b] -Version: 1.50 +Version: 1.51 Anti-spam by CleanTalk mod with protection against spam bots and manual spam. No Captcha, no questions, no counting animals, no puzzles, no math.