Skip to content
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...
1 parent 57e034c commit 0c60b1113ef06395f584dff71162abb65a50ac75 @rwijaya rwijaya committed Jun 13, 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 0c60b11

Please sign in to comment.
Something went wrong with that request. Please try again.