diff options
author | Yorhel <git@yorhel.nl> | 2009-10-22 14:00:44 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2009-10-22 14:00:44 +0200 |
commit | 40d71fd459c223fafd4b976c9a4b9628ccc80f25 (patch) | |
tree | 7aae79514a583bb060d613b2feecc616f150d5c7 /lib/VNDB/Plugin | |
parent | 126acb28340ddb4831b7e398cacba7f6957721b6 (diff) |
TransAdmin: Fixed comment about how to use it
So that it will only be loaded in the scripts where it is used.
This is still a rather ugly solution, though.
Diffstat (limited to 'lib/VNDB/Plugin')
-rw-r--r-- | lib/VNDB/Plugin/TransAdmin.pm | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/VNDB/Plugin/TransAdmin.pm b/lib/VNDB/Plugin/TransAdmin.pm index 5e9f8b1c..742d2ff2 100644 --- a/lib/VNDB/Plugin/TransAdmin.pm +++ b/lib/VNDB/Plugin/TransAdmin.pm @@ -1,10 +1,12 @@ # This plugin provides a quick and dirty user interface to editing lang.txt, # to use it, add the following to your data/config.pl: # -# use VNDB::Plugin::TransAdmin; -# $VNDB::S{transadmin} = { -# <userid> => 'all' || <language> || <arrayref with languages> -# }; +# if($INC{"YAWF.pm"}) { +# require VNDB::Plugin::TransAdmin; +# $VNDB::S{transadmin} = { +# <userid> => 'all' || <language> || <arrayref with languages> +# }; +# } # # And then open /tladmin in your browser. # Also make sure data/lang.txt is writable by the httpd process. |