mirror of
https://github.com/e107inc/e107.git
synced 2025-08-07 07:06:30 +02:00
Code cleanup
This commit is contained in:
@@ -243,7 +243,7 @@ class e_thumbnail
|
|||||||
$this->sendCachedImage($cache_filename, $thumbnfo);
|
$this->sendCachedImage($cache_filename, $thumbnfo);
|
||||||
|
|
||||||
// No Cached file found - proceed with image creation.
|
// 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);
|
$img = Image::make($this->_src_path);
|
||||||
|
|
||||||
|
|
||||||
|
@@ -1056,7 +1056,10 @@ class e_file
|
|||||||
@set_time_limit(10 * 60);
|
@set_time_limit(10 * 60);
|
||||||
@session_write_close();
|
@session_write_close();
|
||||||
@e107_ini_set("max_execution_time", 10 * 60);
|
@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);
|
@ob_implicit_flush(TRUE);
|
||||||
|
|
||||||
|
|
||||||
|
@@ -1276,7 +1276,7 @@ class e_media
|
|||||||
'media_author' => USERID,
|
'media_author' => USERID,
|
||||||
'media_usedby' => '',
|
'media_usedby' => '',
|
||||||
'media_tags' => '',
|
'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