mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
Deprecated each() function in php 7.2
This commit is contained in:
parent
0aae80ba8e
commit
3d817078a6
15 changed files with 49 additions and 45 deletions
|
@ -661,7 +661,7 @@ for ($i = 0; $i < $total_posts; $i++) {
|
|||
'\"', '"',
|
||||
substr(
|
||||
preg_replace_callback('#(\>(((?>([^><]+|(?R)))*)\<))#s', function ($matches) use ($orig_word, $replacement_word) {
|
||||
return preg_replace($orig_word, $replacement_word, $matches[0]);
|
||||
return preg_replace($orig_word, $replacement_word, reset($matches));
|
||||
}, '>' . $user_sig . '<'), 1, -1
|
||||
)
|
||||
);
|
||||
|
@ -671,7 +671,7 @@ for ($i = 0; $i < $total_posts; $i++) {
|
|||
'\"', '"',
|
||||
substr(
|
||||
preg_replace_callback('#(\>(((?>([^><]+|(?R)))*)\<))#s', function ($matches) use ($orig_word, $replacement_word) {
|
||||
return preg_replace($orig_word, $replacement_word, $matches[0]);
|
||||
return preg_replace($orig_word, $replacement_word, reset($matches));
|
||||
}, '>' . $message . '<'), 1, -1
|
||||
)
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue