mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 18:51:41 +09:00
Move ob_start() from addon script to Context class if using delay_session
This commit is contained in:
parent
3b9a9c0f7a
commit
040d120710
2 changed files with 1 additions and 2 deletions
|
|
@ -80,7 +80,6 @@ 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)
|
||||
|
|
@ -136,7 +135,6 @@ 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