Revert "MDL-26392, nwiki and creole format wiki pages should support file attachments"

This reverts commit 0c5e812ba7  because UI is going to be reimplemented.
This commit is contained in:
Petr Skoda 2011-03-08 10:11:07 +01:00
parent 97b4297e13
commit 23c799459d
6 changed files with 109 additions and 82 deletions

View file

@ -80,20 +80,20 @@ class mod_wiki_edit_form extends moodleform {
$mform->addElement('hidden', 'contentformat');
$mform->setDefault('contentformat', $format);
if ($format != 'html') {
//uploads
$mform->addElement('header', 'attachments_tags', get_string('uploadtitle', 'wiki'));
$mform->addElement('filemanager', 'attachments', '', null, page_wiki_edit::$attachmentoptions);
$fileinfo = array(
'contextid'=>$contextid,
'component'=>'mod_wiki',
'filearea'=>$filearea,
'itemid'=>$fileitemid,
);
//$mform->addElement('wikifiletable', 'deleteuploads', get_string('wikifiletable', 'wiki'), null, $fileinfo, $format);
//$mform->addElement('submit', 'editoption', get_string('upload', 'wiki'), array('id' => 'tags'));
}
// if ($format != 'html') {
// //uploads
// $mform->addElement('header', 'attachments_tags', get_string('attachments', 'wiki'));
// $mform->addElement('filemanager', 'attachments', get_string('attachments', 'wiki'), null, page_wiki_edit::$attachmentoptions);
// $fileinfo = array(
// 'contextid'=>$contextid,
// 'component'=>'mod_wiki',
// 'filearea'=>$filearea,
// 'itemid'=>$fileitemid,
// );
//
// $mform->addElement('wikifiletable', 'deleteuploads', get_string('wikifiletable', 'wiki'), null, $fileinfo, $format);
// $mform->addElement('submit', 'editoption', get_string('upload', 'wiki'), array('id' => 'tags'));
// }
if (!empty($CFG->usetags)) {
$mform->addElement('header', 'tagshdr', get_string('tags', 'tag'));