// URL編集が無い場合
if ($this->Link->mb_urlEncode($this->data) == $link['Link']['url']) {
unset($this->Link->validate['url']['isUnique']);
+ // URL編集した場合はcreatedも更新
+ } else {
+ $this->data['Link']['created'] = date('Y-m-d H:i:s');
+ $fieldList[] = 'created';
}
$this->data['Link']['id'] = $id;
</script>
<?php
$ThumnailNotice = null;
-if ($this->Time->wasWithinLast('2 hours', $link['Link']['modified'])) {
+if ($this->Time->wasWithinLast('2 hours', $link['Link']['created'])) {
$ThumnailNotice = $this->Html->div('ThumnailNotice',
__('It takes 1-2 hours for creating thumnail', true)
);