]> git.andy128k.dev Git - ipf-template.git/commitdiff
app based template context
authorAndrey Kutejko <andy128k@gmail.com>
Sun, 7 Jul 2013 06:10:17 +0000 (09:10 +0300)
committerAndrey Kutejko <andy128k@gmail.com>
Sun, 7 Jul 2013 06:10:17 +0000 (09:10 +0300)
ipf/template/context/request.php

index f2c555f4df1bfe02ca206e494f0b707045770a73..1d4684d3d856035819a7e194554abed5af0d0f89 100644 (file)
@@ -9,6 +9,9 @@ class IPF_Template_Context_Request extends IPF_Template_Context
             IPF::loadFunction($proc);
             $vars = array_merge($proc($request), $vars);
         }
+        foreach (IPF_Project::getInstance()->appList() as $app) {
+            $vars = array_merge($app->templateContext($request), $vars);
+        }
         parent::__construct($vars);
     }
 }