From 2843e2ed9a26823bc0df90b0e8855bf2368aae59 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Tue, 29 Jul 2008 14:31:54 -0400 Subject: [PATCH] force re-render on all notices whether or not they're already rendered darcs-hash:20080729183154-84dde-680e676d3f1f953ed0a8259598aaee04c012dc60.gz --- fixup_notices_rendered.php | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/fixup_notices_rendered.php b/fixup_notices_rendered.php index 546eef37eb..53f9b1b166 100755 --- a/fixup_notices_rendered.php +++ b/fixup_notices_rendered.php @@ -35,13 +35,11 @@ $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); - $result = $notice->update($original); - if (!$result) { - common_log_db_error($notice, 'UPDATE', __FILE__); - } + common_log(LOG_INFO, 'Pre-rendering notice #' . $notice->id); + $original = clone($notice); + $notice->rendered = common_render_content($notice->content, $notice); + $result = $notice->update($original); + if (!$result) { + common_log_db_error($notice, 'UPDATE', __FILE__); } } -- 2.39.5