Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 11
Línea 79... Línea 79...
79
                return null;
79
                return null;
80
            }
80
            }
Línea 81... Línea 81...
81
 
81
 
Línea 82... Línea -...
82
            $items = array();
-
 
83
 
-
 
84
            $formatoptions = new stdClass();
-
 
85
            $formatoptions->trusttext = true;
82
            $items = array();
86
 
83
 
87
            foreach ($recs as $rec) {
84
            foreach ($recs as $rec) {
Línea 88... Línea 85...
88
                $item = new stdClass();
85
                $item = new stdClass();
Línea 95... Línea 92...
95
                $item->pubdate = $rec->entrytimecreated;
92
                $item->pubdate = $rec->entrytimecreated;
96
                $item->link = $CFG->wwwroot."/mod/glossary/showentry.php?courseid=".$glossary->course."&eid=".$rec->entryid;
93
                $item->link = $CFG->wwwroot."/mod/glossary/showentry.php?courseid=".$glossary->course."&eid=".$rec->entryid;
Línea 97... Línea 94...
97
 
94
 
98
                $definition = file_rewrite_pluginfile_urls($rec->entrydefinition, 'pluginfile.php',
95
                $definition = file_rewrite_pluginfile_urls($rec->entrydefinition, 'pluginfile.php',
99
                    $modcontext->id, 'mod_glossary', 'entry', $rec->entryid);
96
                    $modcontext->id, 'mod_glossary', 'entry', $rec->entryid);
-
 
97
                $item->description = format_text($definition, $rec->entryformat, [
-
 
98
                    'context' => $modcontext,
-
 
99
                    'trusted' => true,
100
                $item->description = format_text($definition, $rec->entryformat, $formatoptions, $glossary->course);
100
                ]);
101
                $items[] = $item;
101
                $items[] = $item;
Línea 102... Línea 102...
102
            }
102
            }
103
 
103