mirror of
https://github.com/e107inc/e107.git
synced 2025-07-29 10:50:25 +02:00
CLI mode debug class clean exit fix.
This commit is contained in:
@@ -423,5 +423,5 @@ if(!e107::isCli())
|
|||||||
e107::getSession()->shutdown();
|
e107::getSession()->shutdown();
|
||||||
// Shutdown
|
// Shutdown
|
||||||
$e107->destruct();
|
$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;
|
global $error_handler, $e107_Clean_Exit, $In_e107_Footer, $ADMIN_DIRECTORY;
|
||||||
|
|
||||||
|
// $ADMIN_DIRECTORY = e107::getFolder('admin');
|
||||||
|
|
||||||
if(isset($e107_Clean_Exit))
|
if(isset($e107_Clean_Exit))
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
|
@@ -775,9 +775,10 @@ class e107
|
|||||||
/**
|
/**
|
||||||
* Get folder name (e107_config)
|
* Get folder name (e107_config)
|
||||||
* Replaces all $(*)_DIRECTORY globals
|
* Replaces all $(*)_DIRECTORY globals
|
||||||
|
* @example
|
||||||
* Example: <code>$e107->getFolder('images')</code>;
|
* Example: <code>$e107->getFolder('images')</code>;
|
||||||
*
|
*
|
||||||
* @param string $for
|
* @param string $for admin | plugin |
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public static function getFolder($for)
|
public static function getFolder($for)
|
||||||
|
@@ -29,6 +29,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
global $pref, $ns, $tp, $frm;
|
global $pref, $ns, $tp, $frm;
|
||||||
|
global $error_handler, $e107_Clean_Exit, $In_e107_Footer, $ADMIN_DIRECTORY;
|
||||||
|
|
||||||
$pref = e107::getPref();
|
$pref = e107::getPref();
|
||||||
$ns = e107::getRender();
|
$ns = e107::getRender();
|
||||||
$tp = e107::getParser();
|
$tp = e107::getParser();
|
||||||
|
Reference in New Issue
Block a user