From 90df25304c13db3c9c6e4d29e0a4b6044e99fa97 Mon Sep 17 00:00:00 2001 From: Florent Bruneau Date: Mon, 5 May 2008 23:21:32 +0200 Subject: [PATCH] Update the count when an admin goes to admin/validate. Avoid inconsistent states when several copies of the site use the same DB. Signed-off-by: Florent Bruneau --- modules/admin.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/admin.php b/modules/admin.php index e57113a..a0dbbca 100644 --- a/modules/admin.php +++ b/modules/admin.php @@ -953,6 +953,9 @@ class AdminModule extends PLModule } $page->assign('hide_requests', $hidden); + // Update the count of item to validate here... useful in development configuration + // where several copies of the site use the same DB, but not the same "dynamic configuration" + update_NbValid(); $page->assign('vit', new ValidateIterator()); } -- 2.1.4