aboutsummaryrefslogtreecommitdiffstats
path: root/mod/photos.php
diff options
context:
space:
mode:
authormarijus <mario@mariovavti.com>2014-10-31 14:33:41 +0100
committermarijus <mario@mariovavti.com>2014-10-31 14:33:41 +0100
commit2982212797dd64e1be13de20dc158842734ee5f8 (patch)
tree4c190a075ad732348c16260387b8a64c16a0292b /mod/photos.php
parent11ccf253e213fbd71916a53220bb05a18f58808f (diff)
downloadvolse-hubzilla-2982212797dd64e1be13de20dc158842734ee5f8.tar.gz
volse-hubzilla-2982212797dd64e1be13de20dc158842734ee5f8.tar.bz2
volse-hubzilla-2982212797dd64e1be13de20dc158842734ee5f8.zip
more work on photo upload
Diffstat (limited to 'mod/photos.php')
-rw-r--r--mod/photos.php12
1 files changed, 5 insertions, 7 deletions
diff --git a/mod/photos.php b/mod/photos.php
index 6aacd2955..a0f11860d 100644
--- a/mod/photos.php
+++ b/mod/photos.php
@@ -540,12 +540,8 @@ function photos_content(&$a) {
'addon_text' => $uploader,
'default_upload' => true);
-
call_hooks('photo_upload_form',$ret);
- $default_upload = '<input id="photos-upload-choose" type="file" name="userfile" /> <div class="photos-upload-submit-wrapper" >
- <input type="submit" name="submit" value="' . t('Submit') . '" id="photos-upload-submit" /> </div>';
-
/* Show space usage */
$r = q("select sum(size) as total from photo where aid = %d and scale = 0 ",
@@ -584,15 +580,17 @@ function photos_content(&$a) {
'$sessid' => session_id(),
'$usage' => $usage_message,
'$nickname' => $a->data['channel']['channel_address'],
- '$newalbum' => t('Enter a new album name or select an existing one:'),
+ '$newalbum_label' => t('Enter a new album name'),
+ '$newalbum_placeholder' => t('or select an existing one (doubleclick)'),
'$nosharetext' => t('Do not show a status post for this upload'),
'$albums' => $albums['albums'],
'$selname' => $selname,
'$permissions' => t('Permissions'),
'$aclselect' => $aclselect_e,
'$uploader' => $ret['addon_text'],
- '$default' => (($ret['default_upload']) ? $default_upload : ''),
- '$uploadurl' => $ret['post_url']
+ '$default' => (($ret['default_upload']) ? true : false),
+ '$uploadurl' => $ret['post_url'],
+ '$submit' => t('Submit')
));