diff options
author | ivan <ivan> | 2007-04-19 20:18:05 +0000 |
---|---|---|
committer | ivan <ivan> | 2007-04-19 20:18:05 +0000 |
commit | db4034e2019cb6c7f455640b89e8d5fedeb28932 (patch) | |
tree | d2dd105c92897747296f836b17f7f1d010239b60 /FS | |
parent | 5c38d5114cc5b2e8711abfb20b4d2cfb83f944f6 (diff) |
fix very strange "Undefined subroutine &FS::UI::Web::rooturl" with an explicit import. did i mention this was really really weird?
Diffstat (limited to 'FS')
-rw-r--r-- | FS/FS/UI/Web.pm | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/FS/FS/UI/Web.pm b/FS/FS/UI/Web.pm index a05a667b3..43c49354e 100644 --- a/FS/FS/UI/Web.pm +++ b/FS/FS/UI/Web.pm @@ -1,14 +1,18 @@ package FS::UI::Web; use strict; -use vars qw($DEBUG $me); +use vars qw($DEBUG @ISA @EXPORT_OK $me); +use Exporter; +use Number::Format; use FS::Conf; use FS::Record qw(dbdef); -use Number::Format; #use vars qw(@ISA); #use FS::UI #@ISA = qw( FS::UI ); +@ISA = qw( Exporter ); + +@EXPORT_OK = qw( svc_url ); $DEBUG = 0; $me = '[FS::UID::Web]'; @@ -114,6 +118,7 @@ sub svc_url { $url .= 'svcnum=' if $query =~ /^\d+(;|$)/ or $query eq ''; } + import FS::CGI 'rooturl'; #WTF! why is this necessary my $return = rooturl(). "$opt{action}/$url$query"; $return = qq!<A HREF="$return">! if $opt{ahref}; |