Permalink
Browse files

Use Config paths for including Twig extensions

  • Loading branch information...
kolber committed May 27, 2012
1 parent 69df222 commit 0253dbe7d18432b11d64c7d77d775e5a5d077005
Showing with 2 additions and 5 deletions.
  1. +2 −5 extensions/twig-extensions.inc.php
@@ -1,9 +1,6 @@
<?php
-
-if (file_exists('app/parsers/Twig/ExtensionInterface.php')) require_once 'app/parsers/Twig/ExtensionInterface.php';
-else require_once '../app/parsers/Twig/ExtensionInterface.php';
-if (file_exists('app/parsers/Twig/Extension.php')) require_once 'app/parsers/Twig/Extension.php';
-else require_once '../app/parsers/Twig/Extension.php';
+require_once Config::$app_folder.'/parsers/Twig/ExtensionInterface.php';
+require_once Config::$app_folder.'/parsers/Twig/Extension.php';
class Stacey_Twig_Extension extends Twig_Extension {

0 comments on commit 0253dbe

Please sign in to comment.