]> git.sur5r.net Git - contagged/commitdiff
initialize standard template vars earlier
authorAndreas Gohr <gohr@cosmocode.de>
Mon, 18 Nov 2013 13:15:20 +0000 (14:15 +0100)
committerAndreas Gohr <gohr@cosmocode.de>
Mon, 18 Nov 2013 13:15:20 +0000 (14:15 +0100)
index.php

index 2e13d655f74ab843ab8f727db47824a5c573b7e2..56e98ab43823daf0cfb5e9b77bab5c497291b7fc 100644 (file)
--- a/index.php
+++ b/index.php
@@ -12,6 +12,8 @@
     $entrytpl = 'list_entry.tpl';
   }
 
+  tpl_std();
+
   // check which fields are needed
   $fields = get_fields_from_template($entrytpl);
 
@@ -37,7 +39,6 @@
   }
 
   //prepare templates
-  tpl_std();
   if (empty($_REQUEST['filter'])) $_REQUEST['filter']='';
   if (empty($_REQUEST['marker'])) $_REQUEST['marker']='';
   if (empty($_REQUEST['search'])) $_REQUEST['search']='';