Hiding attachment listing altogether

This commit is contained in:
moodler
2004-08-25 03:19:50 +00:00
parent b4d9eecbd0
commit efe91196f3
+2 -1
View File
@@ -21,6 +21,7 @@ function ewiki_view_append_attachments($id, $data, $action) {
$o = '<hr><h4><a href="' . ewiki_script(EWIKI_ACTION_ATTACHMENTS, $id) .
'">' . ewiki_t("ATTACHMENTS") . '</a></h4>';
return($o); // We don't want to show all the attachment listing in Moodle, just a link
$scan = 's:7:"section";' . serialize($id);
$result = ewiki_database("SEARCH", array("meta" => $scan));
@@ -52,4 +53,4 @@ function ewiki_attachments() {
?>
?>