1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-11 09:04:38 +02:00

Clean shutdown flag now using $GLOBAL

This commit is contained in:
Cameron
2021-01-16 15:42:23 -08:00
parent 25e5978ae8
commit 8db0278a9f
5 changed files with 10 additions and 9 deletions

View File

@@ -1145,12 +1145,13 @@
}
global $error_handler, $e107_Clean_Exit, $In_e107_Footer, $ADMIN_DIRECTORY;
global $error_handler, $In_e107_Footer, $ADMIN_DIRECTORY;
// $ADMIN_DIRECTORY = e107::getFolder('admin');
if(isset($e107_Clean_Exit))
if($GLOBALS['E107_CLEAN_EXIT'])
{
return;
}
@@ -1170,10 +1171,10 @@
//
// Error while in the footer, or during startup, or during above processing
//
if(isset($e107_Clean_Exit))
if($GLOBALS['E107_CLEAN_EXIT'])
{
return;
} // We've now sent a footer...
}
// echo isset($In_e107_Footer) ? "In footer" : "In startup".'<br />';