Commit 9fd47999 authored by Francois Marier's avatar Francois Marier Committed by Gerrit Code Review
Browse files

Merge "Fix swapping of site menus from file to url (bug #871487)"

parents c65e0359 7604f954
......@@ -43,9 +43,11 @@ $data = new StdClass;
if ($type == 'sitefile') {
// Get file id.
$data->file = $linkedto;
$data->url = null;
}
else if ($type == 'externallink') {
$data->url = $linkedto;
$data->file = null;
}
else { // Bad menu item type
json_reply('local',get_string('badmenuitemtype','admin'));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment