GIT.Harvie.CZ
/
mirrors
/
Kyberia-bloodline.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
bb1dde2
)
Jeste lepsi vychytafka trasovani templat :-)
author
Harvie
<tomas@mudrunka.cz>
Fri, 22 Jun 2012 01:06:43 +0000
(
03:06
+0200)
committer
Harvie
<tomas@mudrunka.cz>
Fri, 22 Jun 2012 01:06:43 +0000
(
03:06
+0200)
wwwroot/inc/smarty/resource.kyberia.php
patch
|
blob
|
blame
|
history
diff --git
a/wwwroot/inc/smarty/resource.kyberia.php
b/wwwroot/inc/smarty/resource.kyberia.php
index 0c1d51d453d26880bfddff265857f16471d86825..bf22a85a48800606a75f7edc5c95d6662819750c 100644
(file)
--- a/
wwwroot/inc/smarty/resource.kyberia.php
+++ b/
wwwroot/inc/smarty/resource.kyberia.php
@@
-17,9
+17,10
@@
function db_get_template ($tpl_name, &$tpl_source, &$smarty_obj) {
if (is_numeric($template_id)) {
$tpl_source = nodes::getNodeById($template_id,empty($_SESSION['user_id']) ? "" : $_SESSION['user_id']);
}
if (is_numeric($template_id)) {
$tpl_source = nodes::getNodeById($template_id,empty($_SESSION['user_id']) ? "" : $_SESSION['user_id']);
}
- $tpl_source = "\n\n<!-- BEGIN TEMPLATE $template_id -->\n\n".
+ $template_name = $tpl_source['node_name'];
+ $tpl_source = "\n\n<!-- BEGIN TEMPLATE $template_id [$template_name] -->\n\n".
$tpl_source['node_content'].
$tpl_source['node_content'].
- "\n\n<!-- END TEMPLATE $template_id -->\n\n";
+ "\n\n<!-- END TEMPLATE $template_id
[$template_name]
-->\n\n";
// return true on success, false to generate failure notification
return (bool)$tpl_source;
// return true on success, false to generate failure notification
return (bool)$tpl_source;
This page took
0.120425 seconds
and
4
git commands to generate.