summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2009-10-22 14:00:44 +0200
committerYorhel <git@yorhel.nl>2009-10-22 14:00:44 +0200
commit40d71fd459c223fafd4b976c9a4b9628ccc80f25 (patch)
tree7aae79514a583bb060d613b2feecc616f150d5c7 /lib
parent126acb28340ddb4831b7e398cacba7f6957721b6 (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')
-rw-r--r--lib/VNDB/Plugin/TransAdmin.pm10
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.