add start_at argument for notice rendering fixer
darcs-hash:20081114144014-84dde-b75b44b8bb485c4122655e38b8201736fb3f64ed.gz
This commit is contained in:
parent
e5abdb06fc
commit
10383a3211
|
@ -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()) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user