[Bps-public-commit] App-Changeloggr branch, master, updated. 326e89a6142c839d02d4c1501106df7b3f620b42

sartak at bestpractical.com sartak at bestpractical.com
Tue May 19 10:37:45 EDT 2009


The branch, master has been updated
       via  326e89a6142c839d02d4c1501106df7b3f620b42 (commit)
      from  cb63cf175bb8f0215d1bc13f02d3f5635d652b64 (commit)

Summary of changes:
 lib/App/Changeloggr/View/Admin.pm |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

- Log -----------------------------------------------------------------
commit 326e89a6142c839d02d4c1501106df7b3f620b42
Author: Shawn M Moore <sartak at gmail.com>
Date:   Tue May 19 10:37:32 2009 -0400

    Only set up a pubsub channel if background importing is on

diff --git a/lib/App/Changeloggr/View/Admin.pm b/lib/App/Changeloggr/View/Admin.pm
index 643fa17..4465360 100644
--- a/lib/App/Changeloggr/View/Admin.pm
+++ b/lib/App/Changeloggr/View/Admin.pm
@@ -101,10 +101,13 @@ template '/changelog/changes/count' => sub {
     if ($changelog->changes->count) {
         p { _("This changelog has %quant(%1,change).", $changelog->changes->count) }
     }
-    Jifty->subs->update_on(
-        class   => 'AddChanges',
-        queries => [{ id => $id }],
-    );
+
+    if (Jifty->config->app('BackgroundImport')) {
+        Jifty->subs->update_on(
+            class   => 'AddChanges',
+            queries => [{ id => $id }],
+        );
+    }
 };
 
 sub add_changes_to {

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list