mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 19:04:27 +02:00
Correction
This commit is contained in:
@@ -47,7 +47,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
// 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($mid_template) ){
|
if( !$smarty->template_exists($mid_template) ){
|
||||||
$mid_template = 'page_not_found.inc.tpl';
|
$mid_template = 'page_not_found.inc.tpl';
|
||||||
|
Reference in New Issue
Block a user