MDL-14591 - better handling of variable headers in portfolio export

This commit is contained in:
mjollnir_ 2008-09-16 14:22:26 +00:00
parent 6b6f1c056d
commit 45b7e6104d

View 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;