aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2016-02-27 12:31:07 +0100
committerMario Vavti <mario@mariovavti.com>2016-02-27 12:31:07 +0100
commit58cf9d832c0e4af82cc27588fcf4442079d9b105 (patch)
tree22a6ba1f1219850fbc91bf12175892e8f8c09419
parent6126070a1d53c3ef4f59c8a0a6160610ef16563c (diff)
downloadvolse-hubzilla-58cf9d832c0e4af82cc27588fcf4442079d9b105.tar.gz
volse-hubzilla-58cf9d832c0e4af82cc27588fcf4442079d9b105.tar.bz2
volse-hubzilla-58cf9d832c0e4af82cc27588fcf4442079d9b105.zip
make attach_delete() return and comment out album rename functionality since this is not supported by the backend at the moment.
-rw-r--r--include/attach.php2
-rwxr-xr-xview/tpl/photo_view.tpl2
2 files changed, 4 insertions, 0 deletions
diff --git a/include/attach.php b/include/attach.php
index 10ff9f13f..de6c506ce 100644
--- a/include/attach.php
+++ b/include/attach.php
@@ -1314,6 +1314,8 @@ function attach_delete($channel_id, $resource, $is_photo = 0) {
);
file_activity($channel_id, $object, $object['allow_cid'], $object['allow_gid'], $object['deny_cid'], $object['deny_gid'], 'update', $notify=1);
+
+ return;
}
/**
diff --git a/view/tpl/photo_view.tpl b/view/tpl/photo_view.tpl
index 867a1e87b..bd5e68027 100755
--- a/view/tpl/photo_view.tpl
+++ b/view/tpl/photo_view.tpl
@@ -36,6 +36,7 @@
<div id="photo-edit" class="section-content-tools-wrapper">
<form action="photos/{{$edit.nickname}}/{{$edit.resource_id}}" method="post" id="photo_edit_form">
<input type="hidden" name="item_id" value="{{$edit.item_id}}" />
+ {{* album renaming is not supported atm.
<div class="form-group">
<label id="photo-edit-albumname-label" for="photo-edit-albumname">{{$edit.newalbum_label}}</label>
<input id="photo-edit-albumname" class="form-control" type="text" name="albname" value="{{$edit.album}}" placeholder="{{$edit.newalbum_placeholder}}" list="dl-albums" />
@@ -49,6 +50,7 @@
</datalist>
{{/if}}
</div>
+ *}}
<div class="form-group">
<label id="photo-edit-caption-label" for="photo-edit-caption">{{$edit.capt_label}}</label>
<input id="photo-edit-caption" class="form-control" type="text" name="desc" value="{{$edit.caption}}" />