summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorSarven Capadisli <csarven@status.net>2009-10-12 13:05:19 +0000
committerSarven Capadisli <csarven@status.net>2009-10-12 13:05:19 +0000
commitd65702b301a15b9255e9cdb89d3a31c5c6bc355f (patch)
tree933d5a7b4f10386880db003ed6ffb4c71156e901 /plugins
parent410883d146282a0a416181f8ca0dae817597593b (diff)
Only output attachment if the mobile device is interested
Diffstat (limited to 'plugins')
-rw-r--r--plugins/MobileProfile/MobileProfilePlugin.php14
1 files changed, 8 insertions, 6 deletions
diff --git a/plugins/MobileProfile/MobileProfilePlugin.php b/plugins/MobileProfile/MobileProfilePlugin.php
index dada1948f..2b1ccf520 100644
--- a/plugins/MobileProfile/MobileProfilePlugin.php
+++ b/plugins/MobileProfile/MobileProfilePlugin.php
@@ -365,12 +365,14 @@ class MobileProfilePlugin extends WAP20Plugin
}
if (common_config('attachments', 'uploads')) {
- $form->out->element('label', array('for' => 'notice_data-attach'), _('Attach'));
- $form->out->element('input', array('id' => 'notice_data-attach',
- 'type' => 'file',
- 'name' => 'attach',
- 'title' => _('Attach a file')));
- $form->out->hidden('MAX_FILE_SIZE', common_config('attachments', 'file_quota'));
+ if ($this->mobileFeatures['inputfiletype']) {
+ $form->out->element('label', array('for' => 'notice_data-attach'), _('Attach'));
+ $form->out->element('input', array('id' => 'notice_data-attach',
+ 'type' => 'file',
+ 'name' => 'attach',
+ 'title' => _('Attach a file')));
+ $form->out->hidden('MAX_FILE_SIZE', common_config('attachments', 'file_quota'));
+ }
}
if ($form->action) {
$form->out->hidden('notice_return-to', $form->action, 'returnto');