1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-28 18:30:53 +02:00

CLI mode debug class clean exit fix.

This commit is contained in:
Cameron
2021-01-16 14:49:56 -08:00
parent cc5fbe87ef
commit 25e5978ae8
4 changed files with 9 additions and 3 deletions

View File

@@ -423,5 +423,5 @@ if(!e107::isCli())
e107::getSession()->shutdown();
// Shutdown
$e107->destruct();
$e107_Clean_Exit = TRUE; // For registered shutdown function -- let it know all is well!
}
}
$e107_Clean_Exit = TRUE; // For registered shutdown function -- let it know all is well!

View File

@@ -1146,6 +1146,9 @@
global $error_handler, $e107_Clean_Exit, $In_e107_Footer, $ADMIN_DIRECTORY;
// $ADMIN_DIRECTORY = e107::getFolder('admin');
if(isset($e107_Clean_Exit))
{
return;

View File

@@ -775,9 +775,10 @@ class e107
/**
* Get folder name (e107_config)
* Replaces all $(*)_DIRECTORY globals
* @example
* Example: <code>$e107->getFolder('images')</code>;
*
* @param string $for
* @param string $for admin | plugin |
* @return string
*/
public static function getFolder($for)

View File

@@ -29,6 +29,8 @@
}
global $pref, $ns, $tp, $frm;
global $error_handler, $e107_Clean_Exit, $In_e107_Footer, $ADMIN_DIRECTORY;
$pref = e107::getPref();
$ns = e107::getRender();
$tp = e107::getParser();