Skip to content

Commit a071673

Browse files
committed
Switch links back on on document end / page end in a book
1 parent 90e84bf commit a071673

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

renderer/book.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ public function document_start() {
6565
*/
6666
public function document_end() {
6767
//ODT file creation is performed by finalize_ODTfile()
68+
// Switch links back on in case they were disabled at some point
69+
$this->enable_links();
6870
}
6971

7072
/**

renderer/page.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,9 @@ function document_end(){
287287
//$this->doc .= 'Path: '.$conf['mediadir'].'/'.$this->getConf("tpl_dir")."/".$this->template;
288288
//$this->p_close();
289289

290+
// Switch links back on
291+
$this->enable_links();
292+
290293
// Insert TOC (if required)
291294
$this->insert_TOC();
292295

0 commit comments

Comments
 (0)