summaryrefslogtreecommitdiff
path: root/actions/profilesettings.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-05-17 08:20:45 -0400
committerEvan Prodromou <evan@prodromou.name>2008-05-17 08:20:45 -0400
commit3803cf2153091c4f319c379c3ac24cc8fc844b0a (patch)
tree11819210fbca89a8293c2cba1c0b1042cf3ddf6c /actions/profilesettings.php
parentfac522f4d7cce9a35e605fac2bba0b2d23616ad0 (diff)
upload and change avatars
code to upload and change avatars. combined some code in the settings area, too. darcs-hash:20080517122045-84dde-8e13994e627805f29679c9533c2f62db81dc0925.gz
Diffstat (limited to 'actions/profilesettings.php')
-rw-r--r--actions/profilesettings.php18
1 files changed, 1 insertions, 17 deletions
diff --git a/actions/profilesettings.php b/actions/profilesettings.php
index b87cea7de..95462133e 100644
--- a/actions/profilesettings.php
+++ b/actions/profilesettings.php
@@ -21,26 +21,10 @@ if (!defined('LACONICA')) { exit(1) }
class ProfilesettingsAction extends SettingsAction {
- function handle($args) {
- parent::handle($args);
- if (!common_logged_in()) {
- common_user_error(_t('Not logged in.'));
- return;
- }
- if ($this->arg('METHOD') == 'POST') {
- $this->handle_post();
- } else {
- $this->show_form();
- }
- }
-
function show_form($msg=NULL, $success=false) {
common_show_header(_t('Profile settings'));
$this->settings_menu();
- if ($msg) {
- common_element('div', ($success) ? 'success' : 'error',
- $msg);
- }
+ $this->message($msg, $success);
common_start_element('form', array('method' => 'POST',
'id' => 'profilesettings',
'action' =>