Permalink
Browse files

Merge branch 'MDL-27525_m20' of git://github.com/rwijaya/moodle into …

…MOODLE_20_STABLE
  • Loading branch information...
2 parents ba7c14c + 0c60b11 commit 27f31cc626a10dbeff3da0a8b90c31ce504b9dbc @stronk7 stronk7 committed Jun 14, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 mod/wiki/edit.php
  2. +1 −1 mod/wiki/pagelib.php
View
2 mod/wiki/edit.php
@@ -45,7 +45,7 @@
$attachments = optional_param('attachments', 0, PARAM_INT);
$deleteuploads = optional_param('deleteuploads', 0, PARAM_RAW);
-$newconent = '';
+$newcontent = '';
if (!empty($newcontent) && is_array($newcontent)) {
$newcontent = $newcontent['text'];
}
View
2 mod/wiki/pagelib.php
@@ -1913,7 +1913,7 @@ protected function print_save() {
if ($this->format != 'html') {
$params['fileitemid'] = $this->page->id;
- $params['contextid'] = $context->id;
+ $params['contextid'] = $this->modcontext->id;
$params['component'] = 'mod_wiki';
$params['filearea'] = 'attachments';
}

0 comments on commit 27f31cc

Please sign in to comment.