Skip to content
Snippets Groups Projects
Commit f3535cb8 authored by alvaro's avatar alvaro
Browse files

Adding Urifragment filter

parent a0b58ac0
No related branches found
No related tags found
No related merge requests found
<?php
class Haanga_Extension_Filter_Urifragment
{
static function generator($compiler, $args)
{
if (count($args) != 1) {
$compiler->Error("URIFragment only needs one parameter");
}
return hexec('array_pop', hexec('split', '#', $args[0]));
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment