Solved one problem with frames and activitynames filter.
(http://moodle.org/mod/forum/discuss.php?d=28382)
This commit is contained in:
@@ -35,7 +35,7 @@
|
||||
/// Avoid empty or unlinkable activity names
|
||||
if (!empty($title)) {
|
||||
$title = str_replace('"', "'", $title);
|
||||
$href_tag_begin = "<a class=\"autolink\" title=\"$title\" href=\"$CFG->wwwroot/mod/$activity->mod/view.php?id=$activity->cm\">";
|
||||
$href_tag_begin = "<a class=\"autolink\" title=\"$title\" href=\"$CFG->wwwroot/mod/$activity->mod/view.php?id=$activity->cm\" target=\"$CFG->framename\">";
|
||||
$currentname = urldecode($activity->name);
|
||||
if ($currentname = trim($currentname)) {
|
||||
$activitylist[] = new filterobject($currentname, $href_tag_begin, '</a>', false, true);
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
if (!empty($strippedname)) {
|
||||
$resourcelist[] = new filterobject($currentname,
|
||||
'<a class="resource autolink" title="'.$strippedname.'" href="'.
|
||||
$CFG->wwwroot.'/mod/resource/view.php?r='.$resource->id.'">',
|
||||
$CFG->wwwroot.'/mod/resource/view.php?r='.$resource->id.'" target="'.$CFG->framename.'">',
|
||||
'</a>', false, true);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user