summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
ad32dda)
Thanks to Tatsuya Shirai for the patch
// Define file annotations
$wiki->annotate_files('mod_wiki', 'intro', null); // This file area hasn't itemid
// Define file annotations
$wiki->annotate_files('mod_wiki', 'intro', null); // This file area hasn't itemid
- $page->annotate_files('mod_wiki', 'attachments', 'id'); // This file area hasn't itemid
+ $subwiki->annotate_files('mod_wiki', 'attachments', 'id'); // This file area hasn't itemid
// Return the root element (wiki), wrapped into standard activity structure
return $this->prepare_activity_structure($wiki);
// Return the root element (wiki), wrapped into standard activity structure
return $this->prepare_activity_structure($wiki);
- $this->set_mapping('wiki_subwiki', $oldid, $newitemid);
+ $this->set_mapping('wiki_subwiki', $oldid, $newitemid, true);
}
protected function process_wiki_page($data) {
}
protected function process_wiki_page($data) {
protected function after_execute() {
// Add wiki related files, no need to match by itemname (just internally handled context)
$this->add_related_files('mod_wiki', 'intro', null);
protected function after_execute() {
// Add wiki related files, no need to match by itemname (just internally handled context)
$this->add_related_files('mod_wiki', 'intro', null);
- $this->add_related_files('mod_wiki', 'attachments', 'wiki_page');
+ $this->add_related_files('mod_wiki', 'attachments', 'wiki_subwiki');