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:
@@ -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!
|
@@ -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;
|
||||
|
@@ -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)
|
||||
|
@@ -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();
|
||||
|
Reference in New Issue
Block a user