The signature of system::tempname changed.
This commit is contained in:
parent
89775a6774
commit
3a90b862fa
@ -21,7 +21,7 @@ class rawphoto_event_Core {
|
|||||||
static function item_created($item) {
|
static function item_created($item) {
|
||||||
if ($item->is_photo()) {
|
if ($item->is_photo()) {
|
||||||
$input_file = $item->file_path();
|
$input_file = $item->file_path();
|
||||||
$output_file = system::tempnam(TMPPATH, "rawphoto-", ".jpg");
|
$output_file = system::temp_filename("rawphoto-", "jpg");
|
||||||
$success = rawphoto_graphics::convert($input_file, $output_file);
|
$success = rawphoto_graphics::convert($input_file, $output_file);
|
||||||
if ($success) {
|
if ($success) {
|
||||||
$item->set_data_file($output_file);
|
$item->set_data_file($output_file);
|
||||||
|
Reference in New Issue
Block a user