Commit 54df51f0 authored by tobyink's avatar tobyink

Link to edit page

parent e5e3dcc7
......@@ -90,6 +90,9 @@ if ($_POST['submit'])
$user->avatar_uri = $_POST['avatar_uri'];
$user->save();
header("Location: " . $base_url . "/user/" . $user->name);
exit;
}
if (isset($errors[0]))
......
......@@ -57,6 +57,7 @@ if(isset($user->name)) {
if (!PEAR::isError ($aUserTagCloud)) {
$smarty->assign('user_tagcloud',$aUserTagCloud);
}
$smarty->assign('isme', ($_SESSION['user']->name == $user->name));
$smarty->assign('profile', true);
$smarty->display('profile.tpl');
} else {
......
......@@ -7,6 +7,10 @@
<!-- Avatar placeholder -->
<img src="{$avatar|htmlentities}" alt="avatar" class="photo" />
</div>
{if $isme}
<a class="edit" href="{$base_url}/edit_profile.php">[edit]</a>
{/if}
<dl>
<dt>
......
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