-
Bug
-
Resolution: Fixed
-
Minor
-
2.0.3, 2.1
-
MOODLE_20_STABLE, MOODLE_21_STABLE
-
MOODLE_20_STABLE
-
Found the following errors while testing to add images to wiki in Nwiki or creole format (MDL-26392)
Notice: Undefined variable: newcontent in /m20/moodle/mod/wiki/edit.php on line 88
Notice: Undefined variable: context in /m20/moodle/mod/wiki/pagelib.php on line 1916
Notice: Trying to get property of non-object in /m20/moodle/mod/wiki/pagelib.php on line 1916
To reproduce:
1. create new wiki (either creole or nwiki)
2. upload img file
3. add uploaded image on edit page and save.
Also noticed in mod/wiki/edit.php on line 48, there is a variable called $newconent. I think this is suppose to be $newcontent.
[code]
$newconent = '';
if (!empty($newcontent) && is_array($newcontent))
[/code]
- will help resolve
-
MDL-25908 Typo causes wrong variable to be declared in 2.0 wiki
-
- Closed
-