mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 18:51:41 +09:00
Start session automatically if an addon uses the session and exits
This commit is contained in:
parent
90c014678a
commit
237f731e02
2 changed files with 4 additions and 1 deletions
|
|
@ -80,6 +80,7 @@ class addonController extends addon
|
|||
{
|
||||
// Add-on module for use in creating the cache file
|
||||
$buff = array('<?php if(!defined("__XE__")) exit();', '$_m = Context::get(\'mid\');');
|
||||
$buff[] = 'ob_start();';
|
||||
$oAddonModel = getAdminModel('addon');
|
||||
$addon_list = $oAddonModel->getInsertedAddons($site_srl, $gtype);
|
||||
foreach($addon_list as $addon => $val)
|
||||
|
|
@ -135,6 +136,7 @@ class addonController extends addon
|
|||
$buff[] = '$addon_time_log->called_extension = "' . $addon . '";';
|
||||
$buff[] = 'writeSlowlog("addon",$after_time-$before_time,$addon_time_log);';
|
||||
}
|
||||
$buff[] = 'ob_end_flush();';
|
||||
$addon_path = _XE_PATH_ . 'files/cache/addons/';
|
||||
FileHandler::makeDir($addon_path);
|
||||
$addon_file = $addon_path . ($gtype == 'site' ? $site_srl : '') . $type . '.acivated_addons.cache.php';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue