1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-04-21 08:12:17 +02:00

[ticket/16512] Minor code adjustments

PHPBB3-16512
This commit is contained in:
rxu 2020-10-06 07:29:02 +07:00
parent 7ef87e3fbd
commit d6078821c5
No known key found for this signature in database
GPG Key ID: 955F0567380E586A

View File

@ -956,7 +956,7 @@ function make_clickable($text, $server_url = false, string $class = 'postlink')
$element_exists = false;
if (isset($magic_url_match_args[$server_url]))
{
array_walk_recursive($magic_url_match_args[$server_url], function($value, $key) use (&$element_exists, $static_class)
array_walk_recursive($magic_url_match_args[$server_url], function($value) use (&$element_exists, $static_class)
{
if ($value == $static_class)
{
@ -1010,7 +1010,7 @@ function make_clickable($text, $server_url = false, string $class = 'postlink')
{
if (preg_match($magic_args[0], $text, $matches))
{
// Only apply $class from the correcponding function call argument (excepting emails which never has a class)
// Only apply $class from the corresponding function call argument (excepting emails which never has a class)
if ($magic_args[3] != $static_class && $magic_args[1] != MAGIC_URL_EMAIL)
{
continue;