--- sections/novosti.inc 2001/06/29 14:12:07 1.2 +++ sections/novosti.inc 2001/09/10 13:25:01 1.3 @@ -90,10 +90,15 @@ warning=>$warning )); - $main=$smarty->fetch("novosti.tpl"); if (isset($id) && find_html_file("more",$data[0][more])) { $main=join('',file(find_html_file("more",$data[0][more]))); + } else { + $logo="p/${p}_".$data[0][type].".jpg"; + if (file_exists($logo)) { + $smarty->assign("logo",$logo); + } + $main=$smarty->fetch("$p.tpl"); } @@ -101,4 +106,5 @@ $smarty->assign( array(back_url=>$back_url) ); + ?>