Fix Fatal error: Cannot access self:: when no class scope is active. Happens only in PHP < 5.4

This commit is contained in:
Hadi Nategh 2015-06-03 11:57:51 +00:00
parent 2ecc44147e
commit f246349060

View File

@ -246,7 +246,7 @@ class mail_integration {
$data_message = preg_replace_callback(
'/[-_+=~\.]{'.self::MAX_LINE_CHARS.',}/m',
function($matches) {
return substr($matches[0],0,self::MAX_LINE_CHARS);
return substr($matches[0],0, mail_integration::MAX_LINE_CHARS);
},
$mailcontent['message']
);