replaced <? with <?php (lighttp needs)
[mirrors/Kyberia-bloodline.git] / wwwroot / inc / smarty / resource.kyberia.php
index 3a08f08e1b4bfdbedc888278862a3254a0352139..71670c9d105017986ffd60731be6146e9a3774e0 100644 (file)
@@ -3,7 +3,7 @@
 function db_get_template ($tpl_name, &$tpl_source, &$smarty_obj) {
 
         global $db,$error,$node, $error_messages;
-                               $add_template_id = $tpl_name;
+                               $add_template_id = preg_replace('/\.tpl$/', '', $tpl_name);
 
         if (!is_numeric($add_template_id)) {
             $error = $error_messages['NOT_NUMERIC'];
This page took 0.129944 seconds and 4 git commands to generate.