if (!common_logged_in()) {
common_user_error(_t('Not logged in.'));
- } else if ($this->arg('METHOD') == 'POST') {
+ } else if ($_SERVER['REQUEST_METHOD'] == 'POST') {
$id = $this->save_new_notice();
if ($id) {
}
function show_form() {
- common_start_element('form', array('id' => 'newnotice', 'method' => 'POST',
+ common_element_start('form', array('id' => 'newnotice', 'method' => 'POST',
'action' => common_local_url('newnotice')));
common_element('span', 'nickname', $profile->nickname);
common_element('textarea', array('rows' => 4, 'cols' => 80, 'id' => 'content'));
common_element('input', array('type' => 'submit'), 'Send');
- common_end_element('form');
+ common_element_end('form');
}
}
\ No newline at end of file