force re-render on all notices whether or not they're already rendered

darcs-hash:20080729183154-84dde-680e676d3f1f953ed0a8259598aaee04c012dc60.gz
This commit is contained in:
Evan Prodromou 2008-07-29 14:31:54 -04:00
parent 4577182d2c
commit 2843e2ed9a

View File

@ -35,7 +35,6 @@ $notice = new Notice();
$cnt = $notice->find();
while ($notice->fetch()) {
if (!$notice->rendered) {
common_log(LOG_INFO, 'Pre-rendering notice #' . $notice->id);
$original = clone($notice);
$notice->rendered = common_render_content($notice->content, $notice);
@ -43,5 +42,4 @@ while ($notice->fetch()) {
if (!$result) {
common_log_db_error($notice, 'UPDATE', __FILE__);
}
}
}