From a1d702886435eb9f410e7b6f6153c222c1bb1287 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Carlos=20Ra=C3=B1a?= Date: Sat, 27 Sep 2008 19:01:39 +0200 Subject: [PATCH] [svn r16421] Clean code --- main/wiki/index.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/main/wiki/index.php b/main/wiki/index.php index 4d8117994e..cba5be3cbd 100644 --- a/main/wiki/index.php +++ b/main/wiki/index.php @@ -2834,10 +2834,8 @@ function export2doc($wikiTitle, $wikiContents, $groupId) { $groupPart = ''; $groupPath =''; - } - - require_once (api_get_path(LIBRARY_PATH).'fileUpload.lib.php'); - require_once (api_get_path(LIBRARY_PATH).'document.lib.php'); + } + $exportDir = api_get_path(SYS_COURSE_PATH).api_get_course_path(). '/document'.$groupPath; $exportFile = replace_dangerous_char( $wikiTitle, 'strict' ) . $groupPart;