]> git.mjollnir.org Git - moodle.git/commitdiff
- Exported entries with attachments are now properly shown everywhere.
authorwillcast <willcast>
Wed, 1 Oct 2003 01:35:45 +0000 (01:35 +0000)
committerwillcast <willcast>
Wed, 1 Oct 2003 01:35:45 +0000 (01:35 +0000)
lang/en/glossary.php
lang/es/glossary.php
mod/glossary/lib.php

index 79d4841b266d694b0a66f94da314e60210bf2e61..913e26ae634d177e446ccb9566d4504fe327ce09 100644 (file)
@@ -21,9 +21,9 @@ $string['deleteentry'] = "Delete entry";
 $string['deletingnoneemptycategory'] = "If a non empty category is deleted, its relations with their entries will also be deleted. If you wish to delete the entries, you will have to do so manually.";
 $string['displayformat'] = "Display format";
 $string['displayformatdefault'] = "Simple, dictionary style";
-$string['displayformat1'] = "Full without author.";
-$string['displayformat2']  = "Full with author.";
-$string['displayformat3']  = "Encyclopedia.";
+$string['displayformat1'] = "Full without author";
+$string['displayformat2']  = "Full with author";
+$string['displayformat3']  = "Encyclopedia";
 $string['editentry'] = "Edit entry";
 $string['editcategories'] = "Edit categories";
 $string['entries'] = "Entries";
index 904f57997f16345937d0af29899eb277471ccee8..ee0a67c24d676ba72de474d8367752d6fcdb610f 100644 (file)
@@ -20,8 +20,8 @@ $string['deleteentry'] = "Borrar entrada";
 $string['deletingnoneemptycategory'] = "Si una categoría es eliminada por consiguiente su relación con las entradas también lo será. Si desea eliminar las entradas, tendrá que hacerlo manualmente.";
 $string['displayformat'] = "Formato de muestra de entradas";
 $string['displayformatdefault'] = "Simple, estilo diccionario";
-$string['displayformat1'] = "Completo sin autor.";
-$string['displayformat2'] = "Completo con autor.";
+$string['displayformat1'] = "Completo sin autor";
+$string['displayformat2'] = "Completo con autor";
 $string['displayformat3'] = "Enciclopedia";
 $string['editentry'] = "Editar entrada";
 $string['editcategories'] = "Editar categorías";
index 944e1c50aefdc60450e993d39da3f887eae5d430..98465296ce1506016955656decc6b40383663242 100644 (file)
@@ -303,9 +303,9 @@ function glossary_search_entries($searchterms, $glossary, $includedefinition) {
 
 
     foreach ($searchterms as $searchterm) {
-        if (strlen($searchterm) < 2) {
+/*        if (strlen($searchterm) < 2) {
             continue;
-        }
+        }*/
         if ($conceptsearch) {
             $conceptsearch.= " OR ";
         }
@@ -470,15 +470,20 @@ function glossary_print_attachments($entry, $return=NULL, $align="left") {
 // if return=html, then return a html string.
 // if return=text, then return a text-only string.
 // otherwise, print HTML for non-images, and return image HTML
-
+//     if attachment is an image, $align set its aligment.
     global $CFG;
+    
+    $newentry = $entry;
+    if ( $newentry->sourceglossaryid ) {
+        $newentry->glossaryid = $newentry->sourceglossaryid;
+    }
 
-    $filearea = glossary_file_area_name($entry);
+    $filearea = glossary_file_area_name($newentry);
 
     $imagereturn = "";
     $output = "";
 
-    if ($basedir = glossary_file_area($entry)) {
+    if ($basedir = glossary_file_area($newentry)) {
         if ($files = get_directory_list($basedir)) {
             $strattachment = get_string("attachment", "glossary");
             $strpopupwindow = get_string("popupwindow");