makeRegex now static public in GNU social
This commit is contained in:
parent
113f7d04a7
commit
216750e084
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user