Commit info for scoop/lib/Scoop/Admin:
Modified Files:
Users.pm
Log Message:
* user_new hook was called twice. Fixed.
* Created block newuser_confirm_page which will now show up on the page after a new user is created, unless it
doesn't exist, in which case the old hard-coded version is still there. Keys %%EMAIL%% replaced with user's email
and %%SITENAME%% with $S->{UI}->{VARS}->{sitename}
--RF
Index: Users.pm
===================================================================
RCS file: /cvs/scoop/scoop/lib/Scoop/Admin/Users.pm,v
retrieving revision 1.53
retrieving revision 1.54
diff -r1.53 -r1.54
317c317,318
< $S->{UI}->{BLOCKS}->{CONTENT} .= qq|
---
> my $return_page = $S->{UI}->{BLOCKS}->{newuser_confirm_page} ||
> qq|
321c322
< You should soon receive an email at $email. This email will contain your password
---
> You should soon receive an email at %%EMAIL%%. This email will contain your password
324c325
< Thanks for creating an account at $S->{UI}->{VARS}->{sitename}!
---
> Thanks for creating an account at %%SITENAME%%!
328a330,334
>
> $return_page =~ s/%%EMAIL%%/$email/g;
> $return_page =~ s/%%SITENAME%%/$S->{UI}->{VARS}->{sitename}/g;
>
> $S->{UI}->{BLOCKS}->{CONTENT} .= $return_page;
520,522c526
<
< $S->run_hook('user_new', $nick);
<
---
>