X-Git-Url: http://git.harvie.cz/?a=blobdiff_plain;f=wwwroot%2Finc%2Fsmarty%2Fresource.kyberia.php;h=71670c9d105017986ffd60731be6146e9a3774e0;hb=46e5d87e84d7f1f868ac059ec81c4631c4bce3e9;hp=3a08f08e1b4bfdbedc888278862a3254a0352139;hpb=6a967e24d43f3d23244c21104e6a3f09d5923cb9;p=mirrors%2FKyberia-bloodline.git diff --git a/wwwroot/inc/smarty/resource.kyberia.php b/wwwroot/inc/smarty/resource.kyberia.php index 3a08f08..71670c9 100644 --- a/wwwroot/inc/smarty/resource.kyberia.php +++ b/wwwroot/inc/smarty/resource.kyberia.php @@ -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'];