makeRegex now static public in GNU social

This commit is contained in:
Mikael Nordfeldth 2015-06-12 17:16:04 +02:00
parent 113f7d04a7
commit 216750e084

View File

@ -912,12 +912,12 @@ class QvitterPlugin extends Plugin {
*/ */
class URLMapperOverwrite extends URLMapper class URLMapperOverwrite extends URLMapper
{ {
function overwrite_variable($m, $path, $args, $paramPatterns, $newaction) static function overwrite_variable($m, $path, $args, $paramPatterns, $newaction)
{ {
$m->connect($path, array('action' => $newaction), $paramPatterns); $m->connect($path, array('action' => $newaction), $paramPatterns);
$regex = URLMapper::makeRegex($path, $paramPatterns); $regex = self::makeRegex($path, $paramPatterns);
foreach($m->variables as $n=>$v) foreach($m->variables as $n=>$v)
if($v[1] == $regex) if($v[1] == $regex)