mirror of
https://github.com/moodle/moodle.git
synced 2025-08-09 19:06:41 +02:00
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:
parent
97b4297e13
commit
23c799459d
6 changed files with 109 additions and 82 deletions
|
@ -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'));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue