summaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-05-17 13:54:16 -0400
committerEvan Prodromou <evan@prodromou.name>2008-05-17 13:54:16 -0400
commit07eb05157a86f83a853e5591862f413d44e0babb (patch)
treedbbd6ec4f1bfecc1da6c195b2e2be9bf60309bc2 /actions
parent6e0cfd908b68897195e2b40916fab4268edd67d9 (diff)
require once for settings actions
darcs-hash:20080517175416-84dde-b83a41de70a48671e0a251c645cf67b81c54bda6.gz
Diffstat (limited to 'actions')
-rw-r--r--actions/avatar.php2
-rw-r--r--actions/password.php2
-rw-r--r--actions/profilesettings.php2
-rw-r--r--actions/register.php2
4 files changed, 7 insertions, 1 deletions
diff --git a/actions/avatar.php b/actions/avatar.php
index 851ef23f4..8a4557f38 100644
--- a/actions/avatar.php
+++ b/actions/avatar.php
@@ -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) {
diff --git a/actions/password.php b/actions/password.php
index c9869f177..c5ab28ee9 100644
--- a/actions/password.php
+++ b/actions/password.php
@@ -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) {
diff --git a/actions/profilesettings.php b/actions/profilesettings.php
index ae060dd90..7779379b1 100644
--- a/actions/profilesettings.php
+++ b/actions/profilesettings.php
@@ -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) {
diff --git a/actions/register.php b/actions/register.php
index 2b41b6a77..a6cdbb51b 100644
--- a/actions/register.php
+++ b/actions/register.php
@@ -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.'));
}