Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

New link stuff

  • Loading branch information...
commit 4314dd20f6897a6dcdbc765979491cde172f3662 1 parent 77d8dbb
@BrianAker BrianAker authored
View
1  Slash/Utility/Display/Display.pm
@@ -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 });
View
5 themes/slashcode/templates/linkStory;misc;default
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.