mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 10:54:27 +02:00
Another correction
This commit is contained in:
@@ -49,7 +49,7 @@
|
|||||||
// set the filename eg index.inc.tpl
|
// set the filename eg index.inc.tpl
|
||||||
$mid_template = $_GET['page'].'inc.tpl';
|
$mid_template = $_GET['page'].'inc.tpl';
|
||||||
|
|
||||||
if( !smarty->template_exists($template_name) ){
|
if( !$smarty->template_exists($mid_template) ){
|
||||||
$mid_template = 'page_not_found.inc.tpl';
|
$mid_template = 'page_not_found.inc.tpl';
|
||||||
}
|
}
|
||||||
$smarty->assign('page_mid', $mid_template);
|
$smarty->assign('page_mid', $mid_template);
|
||||||
|
Reference in New Issue
Block a user