From: nicolasconnault Date: Fri, 4 Jan 2008 06:46:52 +0000 (+0000) Subject: MDL-12429 Applied and tested François' patches to 1.8, 1.9 and head. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=bbc275c1425f28c86729d07e44d27fbb33fffe55;p=moodle.git MDL-12429 Applied and tested François' patches to 1.8, 1.9 and head. --- diff --git a/lib/weblib.php b/lib/weblib.php index 8681aca026..278d7d4634 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -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;\"";