From f03bff3e2f9b56c4083045aad13997342137dfd3 Mon Sep 17 00:00:00 2001 From: jerome mouneyrac Date: Tue, 22 Dec 2009 07:26:20 +0000 Subject: [PATCH] webservice MDL-20803 fix printed documentation (collapsible javascript broke the printed pages) --- webservice/renderer.php | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/webservice/renderer.php b/webservice/renderer.php index 86ebb6b61a..25c47fd115 100644 --- a/webservice/renderer.php +++ b/webservice/renderer.php @@ -290,12 +290,18 @@ EOF; /// each functions will be displayed into a collapsible region (opened if printableformat = true) foreach ($functions as $functionname => $description) { - $documentationhtml .= print_collapsible_region_start('', + + if (empty($printableformat)) { + $documentationhtml .= print_collapsible_region_start('', 'aera_'.$functionname, $this->output_start_tag('strong', array()).$functionname.$this->output_end_tag('strong'), false, !$printableformat, true); + } else { + $documentationhtml .= $this->output_tag('strong', array(), $functionname); + $documentationhtml .= $this->output_empty_tag('br', array()); + } /// function global description $documentationhtml .= $this->output_empty_tag('br', array()); @@ -405,8 +411,9 @@ EOF; } $documentationhtml .= $this->output_empty_tag('br', array()); $documentationhtml .= $this->output_empty_tag('br', array()); - - $documentationhtml .= print_collapsible_region_end(true); + if (empty($printableformat)) { + $documentationhtml .= print_collapsible_region_end(true); + } } /// close the table and return the documentation -- 2.39.5