fixed #36 Smarty: rewrite module system
Merge pull request #44 from cnmicha/36

fixed #36 Smarty: rewrite module system