Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

php 7 .. another error #42

Open
mfalkenhahn opened this issue Mar 30, 2017 · 0 comments
Open

php 7 .. another error #42

mfalkenhahn opened this issue Mar 30, 2017 · 0 comments

Comments

@mfalkenhahn
Copy link

(ERROR @ /var/www/html/ui/core/components/discuss/model/discuss/parser/disbbcodeparser.class.php : 623) PHP warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead

$parts[$i] = preg_replace('~\[([/]?)(list|li)((\s[^\]]+)*)\]~ie', '\'[$1\' . strtolower(\'$2\') . \'$3]\'', $parts[$i]);

if replaced it with

$parts[$i] = preg_replace_callback('~\[([/]?)(list|li)((\s[^\]]+)*)\]~i', function($matches) {
return $matches[0]. strtolower($matches[1]) . $matches[2];
} , $parts[$i]);

The error seems to be fixed, but I'm not sure whether this solution is ok, or not?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant