(re)add missing ChunkContent ajax action
authorMichael J. Rubinsky <mrubinsk@horde.org>
Mon, 1 Feb 2010 16:06:53 +0000 (11:06 -0500)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Mon, 1 Feb 2010 16:06:53 +0000 (11:06 -0500)
kronolith/lib/Ajax/Application.php

index 097174b..ae215f6 100644 (file)
@@ -690,6 +690,18 @@ class Kronolith_Ajax_Application extends Horde_Ajax_Application_Base
         return false;
     }
 
+    public function ChunkContent()
+    {
+        $chunk = basename(Horde_Util::getPost('chunk'));
+        $result = new stdClass;
+        if (!empty($chunk)) {
+            $result->chunk = Horde_Util::bufferOutput('include', KRONOLITH_TEMPLATES . '/chunks/' . $chunk . '.php');
+        }
+
+        return $result;
+    }
+
+
     /**
      * TODO
      */