Assembla home | Assembla project page
 

Changeset 110

Show
Ignore:
Timestamp:
07/18/07 15:14:10 (1 year ago)
Author:
digitalspaghetti
Message:

Changed stub to slug

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branch/controllers/posts_controller.php

    r109 r110  
    3838 
    3939        // The view function finds by Stub instead of ID for SEO. 
    40         function view($stub = null) { 
     40        function view($slug = null) { 
    4141                if(!$id) { 
    4242                        $this->Session->setFlash('Invalid Post.'); 
    4343                        $this->redirect(array('action'=>'index'), null, true); 
    4444                } 
    45                 $this->set('post', $this->Post->findByStub($stub)); 
     45                $this->set('post', $this->Post->findBySlug($slug)); 
    4646        } 
    4747