splitbrain / dokuwiki-plugin-ditaa

Renders ASCII flowcharts contained in a DokuWiki page to images
http://www.dokuwiki.org/plugin:ditaa
5 stars 5 forks source link

plugin fails in farm mode #11

Closed atisne closed 5 months ago

atisne commented 9 years ago

In a farm installation, the rendering fails because the input file is not found -"no such ditaa input file xxx". Indeed, the variable animal is added in $_REQUEST in a farm mode compared to the classic mode. So, the cache file is not build with the same values in the function handle (that builds the data array) and in the function _imgfile (where the variable animal is added to the others data).

I suggest to add the line: unset($data['animal']); in the function _cachename (function lib/plugins/ditaa/syntax.php)

atisne commented 9 years ago

Stupid I am. I just realize this is the same issue as https://github.com/splitbrain/dokuwiki-plugin-graphviz/issues/7.

atisne commented 5 months ago

fixed by https://github.com/cosmocode/dokuwiki-plugin-farmer/commit/917a67f077447938b386ef7e0818a0696b38f93b