Permalink
Browse files

New link stuff

  • Loading branch information...
1 parent 77d8dbb commit 4314dd20f6897a6dcdbc765979491cde172f3662 @BrianAker BrianAker committed Mar 27, 2002
Showing with 4 additions and 2 deletions.
  1. +1 −0 Slash/Utility/Display/Display.pm
  2. +3 −2 themes/slashcode/templates/linkStory;misc;default
@@ -453,6 +453,7 @@ sub linkStory {
tid => $story_link->{tid},
sid => $story_link->{sid},
section => $story_link->{section},
+ url => $slashdb->getSection($story_link->{section}, 'url'),
text => $story_link->{'link'},
dynamic => $dynamic,
}, { Return => 1, Nocomm => 1 });
@@ -18,10 +18,11 @@ en_US
__name__
linkStory
__template__
+[% site_url = url ? url : constants.rootdir %]
[% IF dynamic %]
-<A HREF="[% constants.rootdir %]/article.pl?sid=[% sid %][% IF mode %]&amp;mode=[% mode %][% END %][% IF tid %]&amp;tid=[% tid %][% END %][% IF threshold %]&amp;threshold=[% threshold %][% END %]">[% text %]</A>
+<A HREF="[% site_url %]/article.pl?sid=[% sid %][% IF mode %]&amp;mode=[% mode %][% END %][% IF tid %]&amp;tid=[% tid %][% END %][% IF threshold %]&amp;threshold=[% threshold %][% END %]">[% text %]</A>
[% ELSE %]
-<A HREF="[% constants.rootdir %]/[% section %]/[% sid %].shtml[% IF tid %]?tid=[% tid %][% END %]">[% text %]</A>
+<A HREF="[% site_url %]/[% section %]/[% sid %].shtml[% IF tid %]?tid=[% tid %][% END %]">[% text %]</A>
[% END %]
__seclev__
10000

0 comments on commit 4314dd2

Please sign in to comment.