From 752e1c2b625ab2b20deefa450be7fe4c3a6d2367 Mon Sep 17 00:00:00 2001 From: moodler Date: Sat, 12 Apr 2003 03:42:17 +0000 Subject: [PATCH] Don't pass alltext from mod.html to details.php ... more efficient this way --- mod/resource/details.php | 4 ++++ mod/resource/mod.html | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) 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 @@
- -- 2.39.5