MDL-9730 resource name is now used in accessibility pdf link instead of summary hat may not be always present; merged from MOODLE_18_STABLE

This commit is contained in:
skodak
2007-05-15 19:56:08 +00:00
parent e61c34cfe5
commit 7b8f289cdf
+1 -1
View File
@@ -543,7 +543,7 @@ function display() {
} elseif ($resourcetype == 'pdf') {
echo '<div class="resourcepdf">';
echo '<object data="' . $fullurl . '" type="application/pdf">';
echo get_string('clicktoopen', 'resource') . '<a href="' . $fullurl . '">' . $resource->summary . '</a>';
echo get_string('clicktoopen', 'resource') . '<a href="' . $fullurl . '">' . format_string($resource->name) . '</a>';
echo '</object>';
echo '</div>';
}