Permalink
Browse files

MDL-27525 mod_wiki: Fixed typing error for the variable and assign th…

…e value contextid to use mod context id
  • Loading branch information...
Rossiani Wijaya
Rossiani Wijaya committed Jun 13, 2011
1 parent 6911fa1 commit 6ff768a67f188b9f54d5c45712915153007a3734
Showing with 2 additions and 2 deletions.
  1. +1 −1 mod/wiki/edit.php
  2. +1 −1 mod/wiki/pagelib.php
View
@@ -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
@@ -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 6ff768a

Please sign in to comment.