Set original date with 'touch'
This commit is contained in:
parent
6530902d13
commit
5d7ff21c50
@ -90,9 +90,6 @@ class Photo extends Module {
|
||||
# Read infos
|
||||
$info = $this->getInfo($path);
|
||||
|
||||
# Set original date
|
||||
if ($info['takestamp']!=='') @touch($path, $info['takestamp']);
|
||||
|
||||
# Use title of file if IPTC title missing
|
||||
if ($info['title']==='') $info['title'] = mysqli_real_escape_string($this->database, substr(basename($file['name'], ".$extension"), 0, 30));
|
||||
|
||||
@ -104,6 +101,9 @@ class Photo extends Module {
|
||||
if (!$this->adjustFile($path, $info)) exit('Error: Could not adjust photo!');
|
||||
}
|
||||
|
||||
# Set original date
|
||||
if ($info['takestamp']!=='') @touch($path, $info['takestamp']);
|
||||
|
||||
# Create Thumb
|
||||
if (!$this->createThumb($path, $photo_name)) exit('Error: Could not create thumbnail for photo!');
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user