* @category Settings
* @package Laconica
* @author Evan Prodromou <evan@controlyourself.ca>
- * @author Earle Martin <earle@downlode.org>
* @copyright 2008-2009 Control Yourself, Inc.
* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0
* @link http://laconi.ca/
exit(1);
}
-require_once INSTALLDIR.'/lib/settingsgroupnav.php';
-
/**
* Base class for settings group of actions
*
// change important settings or see private info, and
// _all_ our settings are important
common_set_returnto($this->selfUrl());
- common_redirect(common_local_url('login'));
+ $user = common_current_user();
+ if ($user->hasOpenID()) {
+ common_redirect(common_local_url('openidlogin'), 303);
+ } else {
+ common_redirect(common_local_url('login'), 303);
+ }
} else if ($_SERVER['REQUEST_METHOD'] == 'POST') {
$this->handlePost();
} else {
$this->element('div', ($this->success) ? 'success' : 'error',
$this->msg);
} else {
- $inst = $this->get_instructions();
+ $inst = $this->getInstructions();
$output = common_markup_to_html($inst);
$this->elementStart('div', 'instructions');
$this->raw($output);
- $this->elementEend('div');
+ $this->elementEnd('div');
}
}
return '';
}
- /**
- * Show the local navigation menu
- *
- * This is the same for all settings, so we show it here.
- *
- * @return void
- */
-
- function showLocalNav()
- {
- $menu = new SettingsGroupNav($this);
- $menu->show();
- }
}