Only output attachment if the mobile device is interested
This commit is contained in:
parent
410883d146
commit
d65702b301
@ -365,6 +365,7 @@ class MobileProfilePlugin extends WAP20Plugin
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (common_config('attachments', 'uploads')) {
|
if (common_config('attachments', 'uploads')) {
|
||||||
|
if ($this->mobileFeatures['inputfiletype']) {
|
||||||
$form->out->element('label', array('for' => 'notice_data-attach'), _('Attach'));
|
$form->out->element('label', array('for' => 'notice_data-attach'), _('Attach'));
|
||||||
$form->out->element('input', array('id' => 'notice_data-attach',
|
$form->out->element('input', array('id' => 'notice_data-attach',
|
||||||
'type' => 'file',
|
'type' => 'file',
|
||||||
@ -372,6 +373,7 @@ class MobileProfilePlugin extends WAP20Plugin
|
|||||||
'title' => _('Attach a file')));
|
'title' => _('Attach a file')));
|
||||||
$form->out->hidden('MAX_FILE_SIZE', common_config('attachments', 'file_quota'));
|
$form->out->hidden('MAX_FILE_SIZE', common_config('attachments', 'file_quota'));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if ($form->action) {
|
if ($form->action) {
|
||||||
$form->out->hidden('notice_return-to', $form->action, 'returnto');
|
$form->out->hidden('notice_return-to', $form->action, 'returnto');
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user