From dafbfa192f81718335dc4fb8c22aaaf87c054e16 Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Fri, 27 Feb 2009 23:12:25 +0000 Subject: [PATCH] Use new libary --- time/index.cgi | 2 +- time/time-lib.pl | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/time/index.cgi b/time/index.cgi index e8d2958aa..745c87459 100755 --- a/time/index.cgi +++ b/time/index.cgi @@ -15,7 +15,7 @@ else { $arr = "0"; } &ui_print_header(undef, $text{ 'index_title' }, "", "index", 1, 1, undef, - &help_search_link("date hwclock", "man"), + &help_search_link("date hwclock ntpdate", "man"), qq(\n), qq(onLoad="F=[$arr];timeInit(F); setTimeout('timeUpdate(F)', 5000);")); diff --git a/time/time-lib.pl b/time/time-lib.pl index 7ae19dd07..1f801c8e8 100755 --- a/time/time-lib.pl +++ b/time/time-lib.pl @@ -1,8 +1,8 @@ #!/usr/local/bin/perl -do "../web-lib.pl"; +BEGIN { push(@INC, ".."); }; +use WebminCore; &init_config(); -do '../ui-lib.pl'; %access = &get_module_acl(); $cron_cmd = "$module_config_directory/sync.pl"; if ($config{'zone_style'}) {