MDL-38395 question categories: wrong URLs after editing.
MDL-38395 question categories: wrong URLs after editing.

The problem was that array1 + array2 takes the values from
array1 when a key appears in both places.

While working on this area, I updated it to use html_writer.

dilawar/moodle