Skip to content

Commit

Permalink
allow the edited/updated page to link directly to the authed edit page
Browse files Browse the repository at this point in the history
  • Loading branch information
iamcal committed Oct 31, 2010
1 parent ca69aff commit 7048eeb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion templates/page_weblog.txt
Expand Up @@ -15,7 +15,8 @@
Thanks for editing your details - your changes have now been saved.<br />
{/if}
<br />
If your weblog is at multiple stations (between several, or you live at work in different places, etc) then you can <a href="/edit/">add more stations</a>.<br />
If your weblog is at multiple stations (between several, or you live at work in different places, etc)
then you can <a href="/weblogs/{$weblog.id}/edit/{$sig|escape}/">add more stations</a>.<br />
</div>
</div>

Expand Down
2 changes: 2 additions & 0 deletions weblog.php
Expand Up @@ -35,11 +35,13 @@

if ($_GET['added'] == blog_signature($weblog['id'])){

$smarty->assign('sig', $_GET['added']);
$smarty->assign('added', 1);
}

if ($_GET['updated'] == blog_signature($weblog['id'])){

$smarty->assign('sig', $_GET['updated']);
$smarty->assign('updated', 1);
}

Expand Down

0 comments on commit 7048eeb

Please sign in to comment.