MDL-8050 1.2 Remove all target="_top"

This commit is contained in:
skodak
2007-01-03 19:24:48 +00:00
parent ee5567d1ae
commit e25cb71041
23 changed files with 286 additions and 68 deletions
+6 -2
View File
@@ -47,6 +47,11 @@
$contentlist = array();
if (empty($CFG->framename) or $CFG->framename=='_top') {
$target = '';
} else {
$target = ' target="'.$CFG->framename.'"';
}
foreach ($datacontents as $datacontent) {
$currentcontent = trim($datacontent->content);
$strippedcontent = strip_tags($currentcontent);
@@ -57,8 +62,7 @@
'<a class="data autolink" title="'.
$strippedcontent.'" href="'.
$CFG->wwwroot.'/mod/data/view.php?d='. $datacontent->dataid .
'&amp;rid='. $datacontent->recordid .'" target="'.
$CFG->framename.'">',
'&amp;rid='. $datacontent->recordid .'"'.$target.'>',
'</a>', false, true);
}
} // End foreach