Changeset 19611 for websites

Show
Ignore:
Timestamp:
09/19/08 19:04:14 (2 months ago)
Author:
ha1t
Message:

ページの登録ができなかったのを修正

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • websites/events.php.gr.jp/trunk/app/controllers/event_pages_controller.php

    r19078 r19611  
    2323        $pukiwiki = new Text_PukiWiki(); 
    2424 
     25        if ($id == false) { 
     26            $this->flash('指定のWikiページは存在しません', '/'); 
     27        } 
     28 
    2529        if ($this->data) { 
    2630            // @TODO もっとうまいやりかたはないの? 
     
    3135            } else { 
    3236                $this->data['EventPage']['timestamp'] = time(); 
     37                $this->data['EventPage']['user_id'] = $this->Session->read('id'); 
    3338                $this->EventPage->save($this->data); 
    34                 $this->redirect('/events/show/' . $this->data['EventPage']['event_id']); 
     39                $this->flash('Wikiページの更新が完了しました', '/events/show/' . $this->data['EventPage']['event_id']); 
    3540            } 
    3641        } else {