Changeset 4006
- Timestamp:
- 05/15/07 17:26:19 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plugins/sfBBPlugin/modules/sfBB/lib/sfBBPlugin_sfBBActions.class.php
r3985 r4006 66 66 public function executeViewThread() 67 67 { 68 $c = new Criteria(); 69 $c->add(sfBBPostPeer::ID, $this->getRequestParameter('id')); 70 $c->add(sfBBPostPeer::STRIPPED_TITLE, $this->getRequestParameter('stripped_title')); 71 $c->add(sfBBPostPeer::PARENT_ID, null); 72 $thread = sfBBPostPeer::doSelectOne($c); 73 74 $this->forward404Unless($thread instanceof sfBBPost); 75 76 $this->thread = $thread; 68 77 } 69 78 70 79 public function executeViewPost() 71 80 { 81 $c = new Criteria(); 82 $c->add(sfBBPostPeer::ID, $this->getRequestParameter('id')); 83 $c->add(sfBBPostPeer::STRIPPED_TITLE, $this->getRequestParameter('stripped_title')); 84 $post = sfBBPostPeer::doSelectOne($c); 85 86 $this->forward404Unless($post instanceof sfBBPost); 87 88 $this->post = $post; 72 89 } 73 90