sub handleLinks { for(_test){ goto &$_ if $_ } my( $inner, $lastnodeid )= @_; my $title; my $HLS= getVars(getNode('handlelinks settings','setting')); my( $prefix, $nodeloc )= split( /:\/\//, $inner, 2 ); if($nodeloc){ ## change here $prefix = $1 if($$HLS{lc($prefix) =~ /^=(\w+)$/); ## ($nodeloc,$title)=split(/\|/,$nodeloc,2); my $cpantitle=$title || $nodeloc; my $escapedname=$query->escape($nodeloc); if($prefix){ if($$HLS{lc($prefix)}){ eval($$HLS{lc($prefix)}); } else { return "[$prefix://$nodeloc]"; } } } else { return linkNodeTitle($inner); } }
C.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: allow handleLinks to do aliases
by theorbtwo (Prior) on May 15, 2005 at 11:12 UTC | |
by castaway (Parson) on May 15, 2005 at 11:14 UTC | |
by Tanktalus (Canon) on May 15, 2005 at 14:05 UTC | |
|
Re: allow handleLinks to do aliases
by ysth (Canon) on May 15, 2005 at 14:16 UTC | |
by castaway (Parson) on May 16, 2005 at 09:22 UTC | |
|
Re: allow handleLinks to do aliases
by tye (Sage) on May 15, 2005 at 14:31 UTC | |
by castaway (Parson) on May 16, 2005 at 09:20 UTC |