Fixing more broken links.

This commit is contained in:
Matthew Thiffault 2009-03-11 01:13:55 -04:00
parent e325bb8059
commit dd1f2a234f
2 changed files with 12 additions and 8 deletions

View File

@ -8,8 +8,9 @@
<diritem title="Office" href="office/" />
<diritem title="Events" href="events/" />
<diritem title="Media" href="media/" />
<diritem title="Wiki" href="http://wiki.csclub.uwaterloo.ca/" />
<diritem title="Webmail" href="https://mail.csclub.uwaterloo.ca/" />
<diritem title="Gallery" href="/gallery2/" />
<diritem title="Stats" href="stats" />
<diritem title="Wiki" absolute="true" href="http://wiki.csclub.uwaterloo.ca/" />
<diritem title="Webmail" absolute="true" href="https://mail.csclub.uwaterloo.ca/" />
<diritem title="Gallery" absolute="true" href="/gallery2/" />
<diritem title="Stats" absolute="true" href="stats" />
<diritem title="Library" href="library/" />
</directory>

View File

@ -68,8 +68,11 @@ foreach $item (@items){
$fields{'title'} =~ s/"//g;
if($fields{'absolute'} =~ /true/){
print "<a class=\"diritem\" href=\"$fields{'href'}\">$fields{'title'}</a>\n";
}else{
print "<a class=\"diritem\" href=\"$webroot/$fields{'href'}\">$fields{'title'}</a>\n";
}
}
}