Julio Montoya 12 years ago
parent
commit
eafbd68b1c

+ 1 - 1
composer.json

@@ -16,7 +16,7 @@
         ]
     },   
     "require": {
-        "php": ">=5.3.2"
+        "php": ">=5.3.2"      
     },
     "minimum-stability": "dev"
 }

+ 4 - 9
main/inc/lib/template.lib.php

@@ -10,6 +10,10 @@
 require_once api_get_path(LIBRARY_PATH) . 'banner.lib.php';
 require_once api_get_path(LIBRARY_PATH) . 'symfony/Twig/Autoloader.php';
 
+/*use Assetic\Asset\AssetCollection;
+use Assetic\Asset\FileAsset;
+use Assetic\Asset\GlobAsset;*/
+
 class Template {
 
     public $style = 'default'; //see the template folder 
@@ -91,15 +95,6 @@ class Template {
         $this->twig->addFilter('icon', new Twig_Filter_Function('Template::get_icon_path'));
         $this->twig->addFilter('format_date', new Twig_Filter_Function('Template::format_date'));
 
-        /*
-          $lexer = new Twig_Lexer($this->twig, array(
-          //'tag_comment'  => array('{*', '*}'),
-          //'tag_comment'  => array('{#', '#}'),
-          //'tag_block'    => array('{', '}'),
-          //'tag_variable' => array('{$', '}'),
-          ));
-          $this->twig->setLexer($lexer); */
-
         //Setting system variables
         $this->set_system_parameters();
 

+ 7 - 1
vendor/composer/autoload_real.php

@@ -6,9 +6,15 @@ require __DIR__ . '/ClassLoader.php';
 
 class ComposerAutoloaderInit
 {
+    private static $loader;
+
     public static function getLoader()
     {
-        $loader = new \Composer\Autoload\ClassLoader();
+        if (null !== static::$loader) {
+            return static::$loader;
+        }
+
+        static::$loader = $loader = new \Composer\Autoload\ClassLoader();
         $vendorDir = dirname(__DIR__);
         $baseDir = dirname($vendorDir);
 

+ 3 - 0
vendor/composer/installed.json

@@ -0,0 +1,3 @@
+[
+
+]