We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
in news.php there is code:
$text = preg_replace("/\{(.*?)\}/e", '$\1', $NEWSCLAYOUT);
I think it's not compatible with php7.
The text was updated successfully, but these errors were encountered:
Needs replacing with preg_replace_callback()
preg_replace_callback()
Sorry, something went wrong.
This is similar #3216 and still no example how to fix it.
I use this way everywhere and it works but there is not your function used.
// $text = preg_replace("/\{(.*?)\}/e", '$\1', $NEWSCLAYOUT); $fanat1k_tmp = $NEWSCLAYOUT; preg_match_all("/\{(.*?)\}/", $fanat1k_tmp, $matches); for($i = 0; $i < count($matches[1]); $i++){ $fanat1k_tmp = str_replace("{{$matches[1][$i]}}", ${$matches[1][$i]}, $fanat1k_tmp); } $text .= $fanat1k_tmp;
PS: $fanat1k is named on honour for guy who solved this in content plugin.
188232a
No branches or pull requests
in news.php there is code:
$text = preg_replace("/\{(.*?)\}/e", '$\1', $NEWSCLAYOUT);
I think it's not compatible with php7.
The text was updated successfully, but these errors were encountered: