From bbc275c1425f28c86729d07e44d27fbb33fffe55 Mon Sep 17 00:00:00 2001 From: nicolasconnault Date: Fri, 4 Jan 2008 06:46:52 +0000 Subject: [PATCH] =?utf8?q?MDL-12429=20Applied=20and=20tested=20Fran=E7ois'?= =?utf8?q?=20patches=20to=201.8,=201.9=20and=20head.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- lib/weblib.php | 3 +++ 1 file changed, 3 insertions(+) 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;\""; -- 2.39.5