From b814e978ddb3bb9f05058fb684e2394dd2bf8eb5 Mon Sep 17 00:00:00 2001
From: Gerrit Uitslag <klapinklapin@gmail.com>
Date: Wed, 3 Dec 2014 00:08:14 +0100
Subject: [PATCH] provide also $ID in other export modes to renderer

Simplifies modifying the cache via an action plugin
---
 inc/actions.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/inc/actions.php b/inc/actions.php
index ef09a0dc7..2953c0e79 100644
--- a/inc/actions.php
+++ b/inc/actions.php
@@ -644,7 +644,7 @@ function act_export($act){
             $output = p_wiki_xhtml($ID,$REV,false);
             break;
         default:
-            $output = p_cached_output(wikiFN($ID,$REV), $mode);
+            $output = p_cached_output(wikiFN($ID,$REV), $mode, $ID);
             $headers = p_get_metadata($ID,"format $mode");
             break;
     }
-- 
GitLab