From: moodler Date: Sat, 12 Apr 2003 03:42:17 +0000 (+0000) Subject: Don't pass alltext from mod.html to details.php ... more efficient this way X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=752e1c2b625ab2b20deefa450be7fe4c3a6d2367;p=moodle.git Don't pass alltext from mod.html to details.php ... more efficient this way --- diff --git a/mod/resource/details.php b/mod/resource/details.php index b6f41a310a..092ba55265 100644 --- a/mod/resource/details.php +++ b/mod/resource/details.php @@ -29,6 +29,10 @@ error(get_string("filloutallfields"), $_SERVER["HTTP_REFERER"]); } + if ($form->instance) { + $form->alltext = get_field("resource", "alltext", "id", "$form->instance"); + } + print_simple_box_start("center", "", "$THEME->cellheading"); if ($usehtmleditor and $form->type == HTML) { diff --git a/mod/resource/mod.html b/mod/resource/mod.html index 6b730b1853..792e56718e 100644 --- a/mod/resource/mod.html +++ b/mod/resource/mod.html @@ -55,7 +55,6 @@
-