mirror of
https://github.com/getgrav/grav.git
synced 2026-02-01 20:30:19 +01:00
fixed ordering on a couple of filters
This commit is contained in:
@@ -349,14 +349,14 @@ class TwigExtension extends \Twig_Extension
|
||||
return $string;
|
||||
}
|
||||
|
||||
public function startsWithFilter($needle, $haystack)
|
||||
public function startsWithFilter($haystack, $needle)
|
||||
{
|
||||
return Utils::startsWith($needle, $haystack);
|
||||
return Utils::startsWith($haystack, $needle);
|
||||
}
|
||||
|
||||
public function endsWithFilter($needle, $haystack)
|
||||
public function endsWithFilter($haystack, $needle)
|
||||
{
|
||||
return Utils::endsWith($needle, $haystack);
|
||||
return Utils::endsWith($haystack, $needle);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user