[dokuwiki] Re: Executing code in plugin's conf/metadata.php

  • From: Andreas Gohr <andi@xxxxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Sun, 10 Jul 2011 11:56:38 +0200

> May I ask for help about a strange problem for which I can't find a
> reasonable cause?

I just checked your plugin and it seems this isn't solved, yet. So
here's my better late than never answer...

> I am the maintainer of the NoIEWarning plugin[1], which in its latest form
> does some dynamic stuff in 'conf/metadata.php' in order to read the list of
> available choices for a combobox. Specifically, the opendir[2] family of
> functions is used to read the filenames in a directory ("recommendation
> directory") and the values are fed to the valid choices for the metadata's
> '_choices' array.

We do have a config class that reads the available choices from a
directory already. It's called settings_dirchoice. Maybe you can use
it?

If not, you should inherit your own class from it and implement all
logic within. There should be no global code except the $meta setup
and your configuration class setup.

Andi

-- 
splitbrain.org
-- 
DokuWiki mailing list - more info at
http://www.dokuwiki.org/mailinglist

Other related posts: