From 1237e64d6316d19c8c351b77afaeba45598aa4a1 Mon Sep 17 00:00:00 2001 From: stronk7 Date: Wed, 11 Jan 2006 15:21:02 +0000 Subject: [PATCH] Solved one problem with frames and activitynames filter. (http://moodle.org/mod/forum/discuss.php?d=28382) --- filter/activitynames/filter.php | 2 +- mod/resource/filter.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/filter/activitynames/filter.php b/filter/activitynames/filter.php index 8683a69df0b..21c37582580 100644 --- a/filter/activitynames/filter.php +++ b/filter/activitynames/filter.php @@ -35,7 +35,7 @@ /// Avoid empty or unlinkable activity names if (!empty($title)) { $title = str_replace('"', "'", $title); - $href_tag_begin = "wwwroot/mod/$activity->mod/view.php?id=$activity->cm\">"; + $href_tag_begin = "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, '', false, true); diff --git a/mod/resource/filter.php b/mod/resource/filter.php index b5b1c0c74d6..33103379473 100644 --- a/mod/resource/filter.php +++ b/mod/resource/filter.php @@ -39,7 +39,7 @@ if (!empty($strippedname)) { $resourcelist[] = new filterobject($currentname, '', + $CFG->wwwroot.'/mod/resource/view.php?r='.$resource->id.'" target="'.$CFG->framename.'">', '', false, true); } }