X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/5621ef7ea5345297fd9645f299df01fcf8177d50..e71622d233660b5ba305d68e586d7d14ff2124e6:/doc/todo/fortune:_select_options_via_environment.mdwn diff --git a/doc/todo/fortune:_select_options_via_environment.mdwn b/doc/todo/fortune:_select_options_via_environment.mdwn index 75b48cd9c..ddacd91b5 100644 --- a/doc/todo/fortune:_select_options_via_environment.mdwn +++ b/doc/todo/fortune:_select_options_via_environment.mdwn @@ -14,9 +14,9 @@ package IkiWiki::Plugin::fortune; use warnings; - @@ -12,7 +18,13 @@ sub import { #{{{ + @@ -12,7 +18,13 @@ sub import { - sub preprocess (@) { #{{{ + sub preprocess (@) { $ENV{PATH}="$ENV{PATH}:/usr/games:/usr/local/games"; - my $f = `fortune 2>/dev/null`; + my $f; @@ -29,3 +29,6 @@ if ($?) { return "[[".gettext("fortune failed")."]]"; + +> An environment variable is not the right approach. Ikiwiki has a setup +> file, and plugins can use configuration from there. --[[Joey]]