added criteria to remmove hidden files in blocks

This commit is contained in:
Rudi Grinberg 2012-11-05 09:40:58 -05:00
parent 4522fa94b2
commit 800f8b9ded
1 changed files with 1 additions and 0 deletions

View File

@ -1347,6 +1347,7 @@ SQL;
// check if file exists
$qry->add("file_exists", "true", Criteria::EQUAL);
$qry->add("hidden", "false", Criteria::EQUAL);
$qry->addAscendingOrderByColumn('random()');
}
// construct limit restriction