summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-07-29 14:31:54 -0400
committerEvan Prodromou <evan@prodromou.name>2008-07-29 14:31:54 -0400
commit2843e2ed9a26823bc0df90b0e8855bf2368aae59 (patch)
treeefb1adbc585a9723f63e83e74a2044f33db43009
parent4577182d2c771d3d2fec5f9a597d62511b5a8c8c (diff)
force re-render on all notices whether or not they're already rendered
darcs-hash:20080729183154-84dde-680e676d3f1f953ed0a8259598aaee04c012dc60.gz
-rwxr-xr-xfixup_notices_rendered.php14
1 files changed, 6 insertions, 8 deletions
diff --git a/fixup_notices_rendered.php b/fixup_notices_rendered.php
index 546eef37e..53f9b1b16 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__);
}
}