nooku is a Public Portfolio from Assembla

Assembla offers free public and private SVN/Git repositories and project hosting with bug/issue tracking and collaboration tools.

Create your own Portfolio or check out other free and subscription products from Assembla that will help accelerate your development projects.

nooku-server

Commit 3557

User picture
  • Author: johanjanssens
  • 2012-04-03 09:05 (about 2 years ago)

re #204 : Cleanup

Files Affected

 
35563557
34
 
34
 
35
    public function _buildQueryWhere(KDatabaseQuerySelect $query)
35
    public function _buildQueryWhere(KDatabaseQuerySelect $query)
36
    {
36
    {
37
        if ($this->getMixer()->getIdentifier()->name == 'article' && !isset($this->featured_order)) {
37
        if ($this->getMixer()->getIdentifier()->name == 'article' && !isset($this->featured_order)) 
 
 
38
        {
38
            $query->where('catid = :category')
39
            $query->where('catid = :category')
39
                ->where('state >= :state')
40
                  ->where('state >= :state')
40
                ->bind(array('category' => $this->category_id, 'state' => 0));
41
                  ->bind(array('category' => $this->category_id, 'state' => 0));
41
        }
42
        }
42
    }
43
    }
43
}
44
}