MDL-12429 Applied and tested François' patches to 1.8, 1.9 and head.

This commit is contained in:
nicolasconnault
2008-01-04 06:46:52 +00:00
parent 7734465963
commit bbc275c142
+3
View File
@@ -6856,6 +6856,9 @@ function doc_link($path='', $text='', $iconpath='') {
$lang = str_replace('_utf8', '', current_language());
$url = $CFG->docroot. '/' .$lang. '/' .$path;
$lang = str_replace('_utf8', '', current_language());
$url = $CFG->docroot. '/' .$lang. '/' .$path;
$target = '';
if (!empty($CFG->doctonewwindow)) {
$target = " onclick=\"window.open('$url'); return false;\"";