Commit 278006e4 authored by Mike Cochrane's avatar Mike Cochrane

Lazy/Auto load the class files as needed

darcs-hash:20080724234533-533db-ec2e235401e7f670ee8094ba8d70dc95c3e6dd63.gz
parent 0dac70d0
......@@ -75,7 +75,8 @@ class PublicAction extends StreamAction {
if ($cnt > 0) {
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()) {
$this->show_notice($notice);
} else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment