1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-11 17:14:42 +02:00

Added more custom field tests.

This commit is contained in:
Cameron
2020-12-25 10:31:42 -08:00
parent 7dfac0dcfa
commit d890163836
3 changed files with 139 additions and 70 deletions

View File

@@ -32,7 +32,14 @@ function mimeFromFilename($fileName)
return "Content-type: image/".$mimeTypes[$fileExt];
}
/**
* @deprecated To be replaced with e107::getMedia()->resizeImage();
* @param string $source_file
* @param string $destination_file
* @param string $type
* @param string $model
* @return bool
*/
function resize_image($source_file, $destination_file, $type = "upload", $model = "")
{
// $destination_file - 'stdout' sends direct to browser. Otherwise treated as file name