mirror of
https://github.com/e107inc/e107.git
synced 2025-08-06 06:38:00 +02:00
Code cleanup
This commit is contained in:
@@ -396,7 +396,7 @@ class eFront
|
||||
|
||||
$router = new eRouter();
|
||||
$this->setRouter($router);
|
||||
|
||||
|
||||
/** @var eResponse $response */
|
||||
$response = e107::getSingleton('eResponse');
|
||||
$this->setResponse($response);
|
||||
|
@@ -243,7 +243,7 @@ class e_thumbnail
|
||||
$this->sendCachedImage($cache_filename, $thumbnfo);
|
||||
|
||||
// No Cached file found - proceed with image creation.
|
||||
|
||||
file_put_contents(e_BASE."e107_system/thumbnail.log",$this->_src_path."\n", FILE_APPEND);
|
||||
$img = Image::make($this->_src_path);
|
||||
|
||||
|
||||
|
@@ -1056,7 +1056,10 @@ class e_file
|
||||
@set_time_limit(10 * 60);
|
||||
@session_write_close();
|
||||
@e107_ini_set("max_execution_time", 10 * 60);
|
||||
while(@ob_end_clean()); // kill all output buffering else it eats server resources
|
||||
while (ob_get_length() !== false) // destroy all ouput buffering
|
||||
{
|
||||
ob_end_clean();
|
||||
}
|
||||
@ob_implicit_flush(TRUE);
|
||||
|
||||
|
||||
|
@@ -1276,7 +1276,7 @@ class e_media
|
||||
'media_author' => USERID,
|
||||
'media_usedby' => '',
|
||||
'media_tags' => '',
|
||||
'media_dimensions' => $info['img-width']." x ".$info['img-height']
|
||||
'media_dimensions' => (isset($info['img-width']) && isset($info['img-height'])) ? $info['img-width']." x ".$info['img-height'] : ''
|
||||
);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user