[aur-dev] [PATCH 3/3] Only output page header after account has been modified

Lukas Fleischer lfleischer at archlinux.org
Mon Jul 13 07:15:49 UTC 2015


On Sat, 11 Jul 2015 at 18:58:00, Marcel Korpel wrote:
> When a user account is modified, the 'My Account' link should contain
> the new username, otherwise clicking it directly after editing a
> username will result in a 404.
> 
> Signed-off-by: Marcel Korpel <marcel.korpel at gmail.com>
> ---
>  web/html/account.php      | 12 +++++++++---
>  web/html/register.php     |  8 +++-----
>  web/lib/acctfuncs.inc.php | 22 ++++++++++++++++++++++
>  3 files changed, 34 insertions(+), 8 deletions(-)
> [...]

Ugh, that's a lot of hacky code, just to get the page title right. Maybe
we should rather use PRG here to avoid all that?


More information about the aur-dev mailing list