Remove NO_EXIT constant
Only used in the freetag-plugin, which could just omit it and rely on the core to call smarty
This commit is contained in:
parent
6c561a6875
commit
4bb10f5b70
21
index.php
21
index.php
@ -79,9 +79,7 @@ if (preg_match(PAT_ARCHIVES, $uri, $matches) || isset($serendipity['GET']['range
|
||||
exit;
|
||||
} else if (preg_match(PAT_PLUGIN, $uri, $matches)) {
|
||||
servePlugin($matches);
|
||||
if (!defined('NO_EXIT')) {
|
||||
exit;
|
||||
}
|
||||
exit;
|
||||
} else if (preg_match(PAT_ADMIN, $uri)) {
|
||||
gotoAdmin();
|
||||
exit;
|
||||
@ -110,15 +108,14 @@ if (preg_match(PAT_ARCHIVES, $uri, $matches) || isset($serendipity['GET']['range
|
||||
serve404();
|
||||
}
|
||||
|
||||
if (!defined('NO_EXIT')) {
|
||||
if (empty($serendipity['smarty_file'])) {
|
||||
$serendipity['smarty_file'] = '404.tpl';
|
||||
$serendipity['viewtype'] = '404_5';
|
||||
}
|
||||
|
||||
serendipity_gzCompression();
|
||||
|
||||
$serendipity['smarty']->display(serendipity_getTemplateFile($serendipity['smarty_file'], 'serendipityPath'));
|
||||
if (empty($serendipity['smarty_file'])) {
|
||||
$serendipity['smarty_file'] = '404.tpl';
|
||||
$serendipity['viewtype'] = '404_5';
|
||||
}
|
||||
|
||||
serendipity_gzCompression();
|
||||
|
||||
$serendipity['smarty']->display(serendipity_getTemplateFile($serendipity['smarty_file'], 'serendipityPath'));
|
||||
|
||||
|
||||
/* vim: set sts=4 ts=4 expandtab : */
|
||||
|
Loading…
x
Reference in New Issue
Block a user