mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-20 18:08:02 +02:00
fix PHP Fatal error, replace utf8_truncate --> Utils::Utf8_truncate
This commit is contained in:
parent
67e2ad0c1a
commit
ea0f039a37
@ -942,7 +942,7 @@ class mail_zpush implements activesync_plugin_write, activesync_plugin_sendmail,
|
|||||||
// remove all other html
|
// remove all other html
|
||||||
$body = strip_tags($raw_body);
|
$body = strip_tags($raw_body);
|
||||||
if(strlen($body) > $truncsize) {
|
if(strlen($body) > $truncsize) {
|
||||||
$body = utf8_truncate($body, $truncsize);
|
$body = Utils::Utf8_truncate($body, $truncsize);
|
||||||
$output->bodytruncated = 1;
|
$output->bodytruncated = 1;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -1053,7 +1053,7 @@ class mail_zpush implements activesync_plugin_write, activesync_plugin_sendmail,
|
|||||||
|
|
||||||
if(isset($truncsize) && strlen($htmlbody) > $truncsize)
|
if(isset($truncsize) && strlen($htmlbody) > $truncsize)
|
||||||
{
|
{
|
||||||
$htmlbody = utf8_truncate($htmlbody,$truncsize);
|
$htmlbody = Utils::Utf8_truncate($htmlbody,$truncsize);
|
||||||
$output->asbody->truncated = 1;
|
$output->asbody->truncated = 1;
|
||||||
}
|
}
|
||||||
$output->asbody->data = $htmlbody;
|
$output->asbody->data = $htmlbody;
|
||||||
@ -1074,7 +1074,7 @@ class mail_zpush implements activesync_plugin_write, activesync_plugin_sendmail,
|
|||||||
if(isset($truncsize) &&
|
if(isset($truncsize) &&
|
||||||
strlen($plainBody) > $truncsize)
|
strlen($plainBody) > $truncsize)
|
||||||
{
|
{
|
||||||
$plainBody = utf8_truncate($plainBody, $truncsize);
|
$plainBody = Utils::Utf8_truncate($plainBody, $truncsize);
|
||||||
$output->asbody->truncated = 1;
|
$output->asbody->truncated = 1;
|
||||||
}
|
}
|
||||||
$output->asbody->data = $plainBody;
|
$output->asbody->data = $plainBody;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user