Browse Source

Updating path due recent Twig lib change.

Julio Montoya 10 years ago
parent
commit
c8e432ee56
1 changed files with 7 additions and 6 deletions
  1. 7 6
      main/inc/lib/template.lib.php

+ 7 - 6
main/inc/lib/template.lib.php

@@ -1,14 +1,15 @@
 <?php
 /* For licensing terms, see /license.txt */
+
+require_once api_get_path(LIBRARY_PATH).'banner.lib.php';
+require_once api_get_path(SYS_PATH).'vendor/twig/twig/lib/Twig/Autoloader.php';
+
 /**
+ * Class Template
  * @author Julio Montoya <gugli100@gmail.com>
  * @todo better organization of the class, methods and variables
  *
- * */
-
-require_once api_get_path(LIBRARY_PATH).'banner.lib.php';
-require_once api_get_path(LIBRARY_PATH).'symfony/Twig/Autoloader.php';
-
+ */
 class Template
 {
     public $style = 'default'; //see the template folder
@@ -52,7 +53,7 @@ class Template
         $this->hide_global_chat = $hide_global_chat;
         $this->load_plugins     = $load_plugins;
 
-        //Twig settings
+        // Twig settings
         Twig_Autoloader::register();
 
         $template_paths = array(