Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 2.0.3, 2.1
-
Fix Version/s: 2.0.4
-
Component/s: Wiki (2.x)
-
Labels:
-
Testing Instructions:
-
Affected Branches:MOODLE_20_STABLE, MOODLE_21_STABLE
-
Fixed Branches:MOODLE_20_STABLE
-
Pull from Repository:
-
Pull Master Branch:
-
Pull Master Diff URL:
Description
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]
Attachments
Issue Links
- will help resolve
-
MDL-25908 Typo causes wrong variable to be declared in 2.0 wiki
-
- Closed
-