TRPGサイト向け会員認証システム
メンバー登録
キャラシ作成&公開
リビジョン | c216bd48e20f104d36b1fcbd12b1627b82c94cd5 (tree) |
---|---|
日時 | 2011-03-08 14:40:39 |
作者 | Cake <cake_67@user...> |
コミッター | Cake |
サムネイル更新中待ち表示をcreated単位に変更
@@ -248,6 +248,10 @@ class LinksController extends AppController { | ||
248 | 248 | // URL編集が無い場合 |
249 | 249 | if ($this->Link->mb_urlEncode($this->data) == $link['Link']['url']) { |
250 | 250 | unset($this->Link->validate['url']['isUnique']); |
251 | + // URL編集した場合はcreatedも更新 | |
252 | + } else { | |
253 | + $this->data['Link']['created'] = date('Y-m-d H:i:s'); | |
254 | + $fieldList[] = 'created'; | |
251 | 255 | } |
252 | 256 | |
253 | 257 | $this->data['Link']['id'] = $id; |
@@ -99,7 +99,7 @@ if ($showType && $link['Link']['type']) { | ||
99 | 99 | </script> |
100 | 100 | <?php |
101 | 101 | $ThumnailNotice = null; |
102 | -if ($this->Time->wasWithinLast('2 hours', $link['Link']['modified'])) { | |
102 | +if ($this->Time->wasWithinLast('2 hours', $link['Link']['created'])) { | |
103 | 103 | $ThumnailNotice = $this->Html->div('ThumnailNotice', |
104 | 104 | __('It takes 1-2 hours for creating thumnail', true) |
105 | 105 | ); |