forked from GNUsocial/gnu-social
require once for settings actions
darcs-hash:20080517175416-84dde-b83a41de70a48671e0a251c645cf67b81c54bda6.gz
This commit is contained in:
parent
6e0cfd908b
commit
07eb05157a
@ -19,6 +19,8 @@
|
||||
|
||||
if (!defined('LACONICA')) { exit(1); }
|
||||
|
||||
require_once(INSTALLDIR.'/lib/settingsaction.php');
|
||||
|
||||
class AvatarAction extends SettingsAction {
|
||||
|
||||
function show_form($msg=NULL, $success=false) {
|
||||
|
@ -19,6 +19,8 @@
|
||||
|
||||
if (!defined('LACONICA')) { exit(1); }
|
||||
|
||||
require_once(INSTALLDIR.'/lib/settingsaction.php');
|
||||
|
||||
class PasswordAction extends SettingsAction {
|
||||
|
||||
function show_form($msg=NULL, $success=false) {
|
||||
|
@ -19,6 +19,8 @@
|
||||
|
||||
if (!defined('LACONICA')) { exit(1); }
|
||||
|
||||
require_once(INSTALLDIR.'/lib/settingsaction.php');
|
||||
|
||||
class ProfilesettingsAction extends SettingsAction {
|
||||
|
||||
function show_form($msg=NULL, $success=false) {
|
||||
|
@ -52,7 +52,7 @@ class RegisterAction extends Action {
|
||||
$this->show_form(_t('Passwords don\'t match.'));
|
||||
} else if ($this->register_user($nickname, $password, $email)) {
|
||||
common_set_user($nickname);
|
||||
common_redirect(common_local_url('settings'));
|
||||
common_redirect(common_local_url('profilesettings'));
|
||||
} else {
|
||||
$this->show_form(_t('Invalid username or password.'));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user