afterlogic / webmail-lite-8

Open-source webmail script for existing IMAP server
https://afterlogic.org/webmail-lite-8
GNU Affero General Public License v3.0
336 stars 72 forks source link

PHP8 support #73

Closed anomality closed 3 years ago

anomality commented 3 years ago

According to PHP 8 is in production state now, the code of webmail-lite should be updated. I'm getting:

Parse error: syntax error, unexpected token "\" in /var/www/webmail/htdocs/system/Module/Manager.php on line 362

Go on with your product, because it's really one of the best! :+1:

afterlogic-support commented 3 years ago

Hello,

A fix for that is already implemented in the respective repository and will be included in the next release of the product.

In fact it was a typo, the code in question should look like this:

$sTemplateSource = \str_replace('{%INCLUDE-START/'.$aItem[0].'/INCLUDE-END%}',
    $sTemplateHtml.'{%INCLUDE-START/'.$aItem[0].'/INCLUDE-END%}', $sTemplateSource);

Thanks.