[freeside-commits] freeside/FS/FS/UI Web.pm,1.27,1.28

Ivan,,, ivan at wavetail.420.am
Thu Apr 19 13:18:07 PDT 2007


Update of /home/cvs/cvsroot/freeside/FS/FS/UI
In directory wavetail:/tmp/cvs-serv1083/FS/FS/UI

Modified Files:
	Web.pm 
Log Message:
fix very strange "Undefined subroutine &FS::UI::Web::rooturl" with an explicit import.  did i mention this was really really weird?

Index: Web.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/UI/Web.pm,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -d -r1.27 -r1.28
--- Web.pm	12 Apr 2007 03:16:42 -0000	1.27
+++ Web.pm	19 Apr 2007 20:18:05 -0000	1.28
@@ -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 );
+ at ISA = qw( Exporter );
+
+ at EXPORT_OK = qw( svc_url );
 
 $DEBUG = 0;
 $me = '[FS::UID::Web]';
@@ -114,6 +118,7 @@
     $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};



More information about the freeside-commits mailing list