summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-11-14 09:40:14 -0500
committerEvan Prodromou <evan@prodromou.name>2008-11-14 09:40:14 -0500
commit10383a3211d0b0864a9719c9c3468616447b5c8c (patch)
treefc1a10cdeb11b183704a8a2395756513debf43f9
parente5abdb06fcf4594b8ae8907158ab4fbe0f8f5379 (diff)
add start_at argument for notice rendering fixer
darcs-hash:20081114144014-84dde-b75b44b8bb485c4122655e38b8201736fb3f64ed.gz
-rwxr-xr-xscripts/fixup_notices_rendered.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/fixup_notices_rendered.php b/scripts/fixup_notices_rendered.php
index 7b29f0d23..c6c925729 100755
--- a/scripts/fixup_notices_rendered.php
+++ b/scripts/fixup_notices_rendered.php
@@ -31,7 +31,12 @@ require_once(INSTALLDIR . '/lib/common.php');
common_log(LOG_INFO, 'Starting to render old notices.');
+$start_at = ($argc > 1) ? $argv[1] : NULL;
+
$notice = new Notice();
+if ($start_at) {
+ $notice->whereAdd('id >= ' . $start_at);
+}
$cnt = $notice->find();
while ($notice->fetch()) {