chiark
/
gitweb
/
~yarrgweb
/
ypp-sc-tools.web-live.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2f82405
)
Export for people's convenience
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Tue, 11 Aug 2009 14:54:33 +0000
(15:54 +0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Tue, 11 Aug 2009 14:54:33 +0000
(15:54 +0100)
yarrg/CommodsWeb.pm
patch
|
blob
|
history
diff --git
a/yarrg/CommodsWeb.pm
b/yarrg/CommodsWeb.pm
index 2bd558b4dc74daec15da023a21b8d8db046f7524..96dde357c9bb40c31d3f7b399848ce9002d1167e 100644
(file)
--- a/
yarrg/CommodsWeb.pm
+++ b/
yarrg/CommodsWeb.pm
@@
-35,12
+35,15
@@
use POSIX;
use Commods;
use CommodsDatabase;
+our $self_url;
+
BEGIN {
use Exporter ();
our ($VERSION, @ISA, @EXPORT, @EXPORT_OK, %EXPORT_TAGS);
$VERSION = 1.00;
@ISA = qw(Exporter);
- @EXPORT = qw($dbh &db_setocean &db_connect &db_doall);
+ @EXPORT = qw($dbh &db_setocean &db_connect &db_doall
+ $self_url);
%EXPORT_TAGS = ( );
@EXPORT_OK = qw();
@@
-53,4
+56,6
@@
for my $dir (@INC) {
}
}
+$self_url= 'http://'.$ENV{'SERVER_NAME'}.$ENV{'SCRIPT_NAME'}.$ENV{'PATH_INFO'};
+
1;