Shout: Enable output compression
authorBen Klang <ben@alkaloid.net>
Sat, 9 Jan 2010 18:21:10 +0000 (13:21 -0500)
committerBen Klang <ben@alkaloid.net>
Sat, 9 Jan 2010 18:21:10 +0000 (13:21 -0500)
shout/lib/Application.php

index bebae9f..b29e1c0 100644 (file)
@@ -82,6 +82,11 @@ class Shout_Application extends Horde_Registry_Application
             }
 
             $_SESSION['shout']['context'] = $context;
+            
+            /* Start compression. */
+            if (!Horde_Util::nonInputVar('no_compress')) {
+                Horde::compressOutput();
+            }
         }
     }