aboutsummaryrefslogtreecommitdiffstats
path: root/include/conversation.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2016-05-09 11:56:42 +0200
committerMario Vavti <mario@mariovavti.com>2016-05-09 11:56:42 +0200
commit24c1dc528dd981fc73baab8dc47840439e81f3b7 (patch)
treedcb77ed174348aef64c9123d49cb59dc77e5032c /include/conversation.php
parentc8f686b8a553586a65e5bb4ceda5d1016d1c15be (diff)
downloadvolse-hubzilla-24c1dc528dd981fc73baab8dc47840439e81f3b7.tar.gz
volse-hubzilla-24c1dc528dd981fc73baab8dc47840439e81f3b7.tar.bz2
volse-hubzilla-24c1dc528dd981fc73baab8dc47840439e81f3b7.zip
make editwebpage use status_editor() and fix storing of layout on webpage creation
Diffstat (limited to 'include/conversation.php')
-rw-r--r--include/conversation.php13
1 files changed, 11 insertions, 2 deletions
diff --git a/include/conversation.php b/include/conversation.php
index 32a613eab..48cb0af6b 100644
--- a/include/conversation.php
+++ b/include/conversation.php
@@ -1144,7 +1144,7 @@ function status_editor($a, $x, $popup = false) {
if($mimeselect)
$mimeselect = mimetype_select($x['profile_uid'], $mimetype);
else
- $mimeselect = '<input type="hidden" name="mimetype" value="' . $x['mimetype'] . '" />';
+ $mimeselect = '<input type="hidden" name="mimetype" value="' . $mimetype . '" />';
$weblink = (($mimetype === 'text/bbcode') ? t('Insert web link') : false);
if(x($x, 'hide_weblink'))
@@ -1154,6 +1154,15 @@ function status_editor($a, $x, $popup = false) {
if(x($x, 'hide_attach'))
$writefiles = false;
+ $layout = ((x($x,'layout')) ? $x['layout'] : 'default');
+
+ $layoutselect = ((x($x,'layoutselect')) ? $x['layoutselect'] : false);
+ if($layoutselect)
+ $layoutselect = layout_select($x['profile_uid'], $layout);
+ else
+ $layoutselect = '<input type="hidden" name="layout_mid" value="' . $layout . '" />';
+
+/*
$layoutselect = '';
if(array_key_exists('layout', $x) && $x['layout']) {
if($x['layout'] === 'choose') {
@@ -1162,7 +1171,7 @@ function status_editor($a, $x, $popup = false) {
else
$layoutselect = '<input type="hidden" name="layout_mid" value="' . $x['layout'] . '" />';
}
-
+*/
if(array_key_exists('channel_select',$x) && $x['channel_select']) {
require_once('include/identity.php');
$id_select = identity_selector();