fixup! replace preg_replace with preg_replace_callback /e is not supported starting with php 7.0

master
lub 5 years ago
parent 485d81f9b3
commit e208cdc5e2

@ -39,8 +39,8 @@ while(true) {
$regex = '#([0-9]{1,3})#'; $regex = '#([0-9]{1,3})#';
$callback = function ($matches) { $callback = function ($matches) {
return $matches[0]+1; return $matches[0]+1;
} };
$newName = preg_replace($regex, $callback, $group['channel_name']); $newName = preg_replace_callback($regex, $callback, $group['channel_name']);
createChannel($server, $newName, $sub, $options); createChannel($server, $newName, $sub, $options);
} }
} }

Loading…
Cancel
Save