mirror of
https://github.com/e107inc/e107.git
synced 2025-08-30 01:30:32 +02:00
3rd party legacy code fix attempt
This commit is contained in:
@@ -21,6 +21,18 @@ $In_e107_Footer = TRUE; // For registered shutdown function
|
||||
|
||||
global $error_handler,$db_time,$ADMIN_FOOTER;
|
||||
|
||||
// Legacy fix - call header if not already done, mainly fixing left side menus to work proper
|
||||
if(!deftrue('e_ADMIN_UI') && !deftrue('ADMIN_AREA'))
|
||||
{
|
||||
// close the old buffer
|
||||
$content = ob_get_contents();
|
||||
ob_get_clean();
|
||||
// open new
|
||||
ob_start();
|
||||
require_once(e_ADMIN.'header.php');
|
||||
echo $content;
|
||||
}
|
||||
|
||||
// Clean session shutdown
|
||||
e107::getSession()->shutdown();
|
||||
|
||||
|
Reference in New Issue
Block a user