From: jerome mouneyrac Date: Tue, 22 Dec 2009 07:26:20 +0000 (+0000) Subject: webservice MDL-20803 fix printed documentation (collapsible javascript broke the... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=f03bff3e2f9b56c4083045aad13997342137dfd3;p=moodle.git webservice MDL-20803 fix printed documentation (collapsible javascript broke the printed pages) --- 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