Skip to content

Commit

Permalink
Try looking for versions
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelhorne committed Nov 13, 2024
1 parent bcf0dc4 commit e91cf6d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<meta name="msvalidate.01" content="deadbeef" />
-->
[% USE env = EnvHash %]
<link rel=alternate" hreflang="en" href="[% env.SCRIPT_URI %]?page=[% page %]&lang=en" />
<link rel=alternate" hreflang="en" href="[% env.SCRIPT_URI %]?page=[% page %]&amp;lang=en" />
<link rel=alternate" hreflang="x-default" href="[% env.SCRIPT_URI %]?page=[% page %]" />
</head>
<body>
Expand Down
8 changes: 6 additions & 2 deletions ged2site
Original file line number Diff line number Diff line change
Expand Up @@ -188,11 +188,15 @@ foreach my $module (@needfull) {
$name =~ s{\.tar\.gz$}{}; # Remove file extension
$name =~ s{::(\d+)$}{ $1}; # Adjust version formatting if embedded in module name

eval "require $name" or die $@;
if($version) {
eval "require $name $version" or die $@;
} else {
eval "require $name" or die $@;
}
$name->import();

# Uncomment to check version if needed
# die "$name: need $version, got " . $name->VERSION if $version && $name->VERSION < $version;
die "$name: need $version, got " . $name->VERSION if $version && $name->VERSION < $version;
}

use autodie qw(:all);
Expand Down

0 comments on commit e91cf6d

Please sign in to comment.