1
0
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:
SecretR
2012-11-28 09:35:06 +02:00
parent e2c2c48511
commit 6c49eddcba
3 changed files with 19 additions and 1 deletions

View File

@@ -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();