[CORE] Make tests great gain

This commit is contained in:
Diogo Cordeiro
2019-07-12 16:31:14 +01:00
parent 39845444cc
commit 9f30c299ee
51 changed files with 1507 additions and 1151 deletions

View File

@@ -1040,7 +1040,7 @@ function common_replace_urls_callback($text, $callback, $arg = null)
'#ixu';
//preg_match_all($regex,$text,$matches);
//print_r($matches);
return preg_replace_callback($regex, callable_left_curry('callback_helper', $callback, $arg), $text);
return preg_replace_callback($regex, callableLeftCurry('callback_helper', $callback, $arg), $text);
}
/**
@@ -1102,7 +1102,7 @@ function callback_helper($matches, $callback, $arg = null)
return substr($matches[0], 0, $left) . $result . substr($matches[0], $right);
}
require_once INSTALLDIR . "/lib/callable_left_curry.php";
require_once INSTALLDIR . "/lib/callableleftcurry.php";
function common_linkify($url)
{