Commit 4b6042d6 authored by Donal McMullan's avatar Donal McMullan

Link remote users back to their home site without going through jump/land

parent b7192af4
......@@ -307,6 +307,7 @@ EOF;
usort($SIDEBLOCKS, create_function('$a,$b', 'if ($a["weight"] == $b["weight"]) return 0; return ($a["weight"] < $b["weight"]) ? -1 : 1;'));
$smarty->assign('userauthinstance', $USER->lastauthinstance);
$smarty->assign('SIDEBLOCKS', $SIDEBLOCKS);
return $smarty;
......
......@@ -2,7 +2,11 @@
{if $data}
<ul id="sitemenu">
{foreach from=$data item=peer}
{if $peer.instance != $userauthinstance}
<li class="{cycle values=r0,r1}"><a href="/auth/xmlrpc/jump.php?wr={$peer.wwwroot|escape}&ins={$peer.instance|escape}">{$peer.name}</a></li>
{else}
<li class="{cycle values=r0,r1}"><a href="{$peer.wwwroot}">{$peer.name}</a></li>
{/if}
{/foreach}
</ul>
{/if}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment