[FIX] allow saving diagrams online in wiki pages
When creating the diagram in a wiki page, the choice Page (inline)
, which must allow saving the diagram inside the wiki page (inline), was not respected and diagram was saved in a file in the file gallery.
This is due to the condition of retrieving the galleryId
variable from the "tiki-editdiagram.php" file. The diagram plugin saves the diagram in the body of the wiki page if the galleryId
variable is equal to null
or does not exist, but when the choice Page (inline)
is selected, 0
(or false
) value is send to the plugin.
So I had to change the condition when fetching galleryId
variable and then it will cope with null, false, 0
and even empty values.