]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-9730 resource name is now used in accessibility pdf link instead of summary hat...
authorskodak <skodak>
Tue, 15 May 2007 19:56:08 +0000 (19:56 +0000)
committerskodak <skodak>
Tue, 15 May 2007 19:56:08 +0000 (19:56 +0000)
mod/resource/type/file/resource.class.php

index f0f061181a5c9daeb7e24ab9f15c0c966d93895f..a035ea699d4c65d019b7745f7b2fa6d69ed2109d 100644 (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>';
         }