summaryrefslogtreecommitdiff
path: root/inc/template.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/template.php')
-rw-r--r--inc/template.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/template.php b/inc/template.php
index 5544dc02e..efd921f7d 100644
--- a/inc/template.php
+++ b/inc/template.php
@@ -152,7 +152,7 @@ function tpl_toc($return=false){
if(is_array($TOC)){
// if a TOC was prepared in global scope, always use it
$toc = $TOC;
- }elseif($ACT == 'show' && !$REV && $INFO['exists']){
+ }elseif(($ACT == 'show' || substr($ACT,0,6) == 'export') && !$REV && $INFO['exists']){
// get TOC from metadata, render if neccessary
$meta = p_get_metadata($ID, false, true);
if(isset($meta['internal']['toc'])){