Fix for normal use of $cfg in priori.php
Merge pull request #12 from macik/master

Fix #11