Show
Ignore:
Timestamp:
07/02/08 18:44:15 (5 months ago)
Author:
aarkerio
Message:

In spanish please

Files:
1 modified

Legend:

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

    r540 r620  
    3838        $order      = "News.id DESC"; 
    3939                     
    40         $limit      = 10; 
    41          
    42         $this->set('data', $this->News->findAll($conditions, $fields, $order)); 
     40        $limit      = 8; 
     41         
     42        $this->set('data', $this->News->findAll($conditions, $fields, $order, $limit)); 
    4343         
    4444        $this->Portal->statics(); // Charge Portal components aka Sidebars 
     
    126126   
    127127  // change user status actived/no actived 
    128   public function admin_change($id, $status) 
     128  public function admin_change($status, $news_id) 
    129129  {   
    130130     $this->data['News']['status'] = ($status == 0 ) ? 1 : 0; 
    131131      
    132      $this->data['News']['id']     = $id; 
     132     $this->data['News']['id']     = $news_id; 
    133133      
    134      if ($this->News->save($this->data['News'])) 
    135      { 
    136            $this->msgFlash('News status changed', '/admin/news/listing'); 
    137      } 
     134     if ($this->News->save($this->data['News'])): 
     135           $this->msgFlash(__('Status modified', true), '/admin/news/listing'); 
     136     endif; 
    138137  } 
    139138