Show
Ignore:
Timestamp:
07/09/08 13:23:48 (5 months ago)
Author:
aarkerio
Message:

Added image and comments fixed

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/app/controllers/users_controller.php

    r633 r634  
    6666 public function entry($username, $entry_id)  
    6767 { 
    68      if ($entry_id == null) 
    69      { 
     68     if ($entry_id == null): 
    7069           $this->redirect('/blog/'.$username); 
    71            exit; 
    72      } 
     70           return false; 
     71     endif; 
    7372      
    7473     $this->pageTitle = $username . '\'s Blog'; 
     
    7675     $user_id = $this->User->field("id", array("username"=>$username)); 
    7776      
    78      if ($username == null || $user_id == null) 
    79      { 
     77     if ($username == null || $user_id == null): 
    8078           $this->redirect("/"); 
    81      } 
     79     endif; 
    8280      
    8381     $this->Entry     = new Entry; 
     
    8785     $fields   = array("Entry.title", "Entry.body", "Entry.created", "Entry.user_id", "Entry.discution", "Entry.subject_id", "Entry.id", "User.username", "Subject.title", "Subject.id"); 
    8886      
    89     if ( $entry_id != null && is_numeric( $entry_id ) ): // show only one new 
     87    if ( $entry_id != null && is_numeric( $entry_id ) ): // show only one new 
    9088            $conditions = array("Entry.user_id"=>$user_id, "Entry.id"=>$entry_id); 
    9189     endif;