Use new module in top-level CGIs
authorJamie Cameron <jcameron@webmin.com>
Sun, 1 Mar 2009 07:49:59 +0000 (07:49 +0000)
committerJamie Cameron <jcameron@webmin.com>
Sun, 1 Mar 2009 07:49:59 +0000 (07:49 +0000)
switch_skill.cgi

index 0b02dd1..9c9ae87 100755 (executable)
@@ -2,7 +2,9 @@
 # switch_skill.cgi
 # Change the skill level of the current user
 
-require './web-lib.pl';
+BEGIN { push(@INC, ".."); };
+use WebminCore;
+
 &init_config();
 &ReadParse();
 $gconfig{'skill_'.$base_remote_user} = $in{'skill'};