aboutsummaryrefslogtreecommitdiffstats
path: root/mod/item.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-09-06 03:10:25 -0700
committerfriendica <info@friendica.com>2013-09-06 03:10:25 -0700
commit63c60b224c70ee9d09b8eb73bd11c44ca4a259fd (patch)
treea5101fd37914d833f5083ab16b03b5b6bc530d12 /mod/item.php
parentae624e9bce6fc3bb14ab6b6f8dcb88f2a082f086 (diff)
downloadvolse-hubzilla-63c60b224c70ee9d09b8eb73bd11c44ca4a259fd.tar.gz
volse-hubzilla-63c60b224c70ee9d09b8eb73bd11c44ca4a259fd.tar.bz2
volse-hubzilla-63c60b224c70ee9d09b8eb73bd11c44ca4a259fd.zip
provide mimetype selector on edit (pages and blocks)
Diffstat (limited to 'mod/item.php')
-rw-r--r--mod/item.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/mod/item.php b/mod/item.php
index dc00efd35..3069bfa4d 100644
--- a/mod/item.php
+++ b/mod/item.php
@@ -627,9 +627,10 @@ function item_post(&$a) {
if($orig_post) {
- $r = q("UPDATE `item` SET `title` = '%s', `body` = '%s', `attach` = '%s', `edited` = '%s', layout_mid = '%s' WHERE `id` = %d AND `uid` = %d LIMIT 1",
+ $r = q("UPDATE `item` SET `title` = '%s', `body` = '%s', `mimetype` = '%s', `attach` = '%s', `edited` = '%s', layout_mid = '%s' WHERE `id` = %d AND `uid` = %d LIMIT 1",
dbesc($datarray['title']),
dbesc($datarray['body']),
+ dbesc($datarray['mimetype']),
dbesc($datarray['attach']),
dbesc(datetime_convert()),
dbesc($layout_mid),