]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-14591 - better handling of variable headers in portfolio export
authormjollnir_ <mjollnir_>
Tue, 16 Sep 2008 14:22:26 +0000 (14:22 +0000)
committermjollnir_ <mjollnir_>
Tue, 16 Sep 2008 14:22:26 +0000 (14:22 +0000)
lib/portfolio/exporter.php

index 147a330c6dfab419063b3ea35381f42233c2d98a..56ef62290f272f224e6feb9fd52611c0e0508d54 100644 (file)
@@ -564,7 +564,11 @@ class portfolio_exporter {
         $headerstr = get_string('exporting', 'portfolio');
 
         print_header($titlestr, $headerstr, $this->navigation);
-        print_heading(get_string($headingstr, 'portfolio'));
+        $hstr = get_string($headingstr, 'portfolio');
+        if (strpos($hstr, '[[') === 0) {
+            $hstr = $headingstr;
+        }
+        print_heading($hstr);
 
         if (!$summary) {
             return;