Lazy/Auto load the class files as needed

darcs-hash:20080724234533-533db-ec2e235401e7f670ee8094ba8d70dc95c3e6dd63.gz
This commit is contained in:
Mike Cochrane 2008-07-24 19:45:33 -04:00
parent 0dac70d010
commit 278006e4cc

View File

@ -75,7 +75,8 @@ class PublicAction extends StreamAction {
if ($cnt > 0) { if ($cnt > 0) {
common_element_start('ul', array('id' => 'notices')); common_element_start('ul', array('id' => 'notices'));
for ($i = 0; $i < min($cnt, NOTICES_PER_PAGE); $i++) { $iMax = min($cnt, NOTICES_PER_PAGE);
for ($i = 0; $i < $iMax; $i++) {
if ($notice->fetch()) { if ($notice->fetch()) {
$this->show_notice($notice); $this->show_notice($notice);
} else { } else {