summaryrefslogtreecommitdiff
path: root/views/layout.php
diff options
context:
space:
mode:
authorAaron Parecki <aaron@parecki.com>2016-12-17 16:00:26 -0800
committerAaron Parecki <aaron@parecki.com>2016-12-17 16:00:26 -0800
commitab0c5f9bfabacbf737cec3fb5796ce66dd37d877 (patch)
treeed5393b79a4dd6cd66d639920d76c0ad75459628 /views/layout.php
parent0a662e33ee432e2583a934cb161a0a1e5b49b76f (diff)
show logged-in user on editor
fixes #9
Diffstat (limited to 'views/layout.php')
-rw-r--r--views/layout.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/views/layout.php b/views/layout.php
index 9fad319..0553f63 100644
--- a/views/layout.php
+++ b/views/layout.php
@@ -75,7 +75,7 @@
</ul>
<ul class="nav navbar-nav navbar-right">
<?php if(session('me')) { ?>
- <li><a href="/settings">⚙ <?= preg_replace(array('/https?:\/\//','/\/$/'),'',session('me')) ?></a></li>
+ <li><a href="/settings">⚙ <?= display_url(session('me')) ?></a></li>
<li><a href="/signout">Sign Out</a></li>
<?php } else if(property_exists($this, 'authorizing')) { ?>
<li class="navbar-text"><?= $this->authorizing ?></li>