Hiding attachment listing altogether
This commit is contained in:
@@ -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() {
|
||||
|
||||
|
||||
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user