Update Extension.php

Fixes #1326
Merge pull request #1328 from siad007/patch-24

Fixed twig filters