From 8c4513b14ffa103d753206ba1b145d6a73e4927b Mon Sep 17 00:00:00 2001 From: Julian Prud'homme Date: Fri, 2 Feb 2007 11:51:17 +0100 Subject: [PATCH] [svn r11052] fix a minor bug --- main/work/work.php | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/main/work/work.php b/main/work/work.php index 10e4d2c894..868fb2ca6d 100644 --- a/main/work/work.php +++ b/main/work/work.php @@ -23,7 +23,7 @@ * @author Patrick Cool , Ghent University - ability for course admins to specify wether uploaded documents are visible or invisible by default. * @author Roan Embrechts, code refactoring and virtual course support * @author Frederic Vauthier, directories management -* @version $Id: work.php 11045 2007-02-01 10:46:48Z elixir_julian $ +* @version $Id: work.php 11052 2007-02-02 10:51:17Z elixir_julian $ * * @todo refactor more code into functions, use quickforms, coding standards, ... */ @@ -815,10 +815,15 @@ if ($_POST['submitWork'] && $succeed &&!$id) //last value is to check this is no { $workUrl = $currentCourseRepositoryWeb.$workUrl; $form->addElement('hidden', 'id', $edit); - $text_document=$form->addElement('text', 'document', get_lang("Document")); - $defaults["document"] = ''.$workUrl.''; - $form->applyFilter('document','strtoupper'); - $text_document->freeze(); + + $html='
+
'.get_lang("Document").' +
+ +
'; + $form->addElement('html', $html); } else // else standard upload option