protected function _actionBrowse($context)
    {
        $sets = parent::_actionBrowse($context);
        $sets->order('updateTime', 'DESC');

        if ($this->photo_id && $this->getRequest()->get('layout') != 'selector') {
            $sets->where('photos.id', '=', $this->photo_id);
        }

        return $sets;
    }
protected function _actionBrowse($context)
    {
        $sets = parent::_actionBrowse($context);
        $sets->order('updateTime', 'DESC');

        if ($this->photo_id && $this->getRequest()->get('layout') != 'selector') {
            $sets->where('photos.id', '=', $this->photo_id);
        }

        return $sets;
    }
protected function _actionBrowse ( $ context ) { $ sets = parent :: _actionBrowse ( $ context ) ; $ sets -> order ( 'updateTime' , 'DESC' ) ; if ( $ this -> photo_id && $ this -> getRequest ( ) -> get ( 'layout' ) != 'selector' ) { $ sets -> where ( 'photos.id' , '=' , $ this -> photo_id ) ; } return $ sets ; }
Browse Albums.
Browse Albums .