aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-09-02 13:31:59 -0700
committerfriendica <info@friendica.com>2013-09-02 13:31:59 -0700
commitf44274bfca6137795ee878a076d5aeed0b330f64 (patch)
tree309b0b7067e9733331562fb46baf16d8bb43bf8d /mod
parent8b7757e033c4483da24700722c186057bb431164 (diff)
downloadvolse-hubzilla-f44274bfca6137795ee878a076d5aeed0b330f64.tar.gz
volse-hubzilla-f44274bfca6137795ee878a076d5aeed0b330f64.tar.bz2
volse-hubzilla-f44274bfca6137795ee878a076d5aeed0b330f64.zip
allow a channel owner to define a default mimetype on webpages (otherwise default to "choose") - also fix the selector w/r/t php code. There is no ui for setting either at the moment, but for instance with wiki pages we probably don't want to have multiple choice of the mimetype. Keep it simple.
Diffstat (limited to 'mod')
-rw-r--r--mod/webpages.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/mod/webpages.php b/mod/webpages.php
index 081297eb9..559b176fc 100644
--- a/mod/webpages.php
+++ b/mod/webpages.php
@@ -41,6 +41,10 @@ function webpages_content(&$a) {
return;
}
+ $mimetype = get_config('system','page_mimetype');
+ if(! $mimetype)
+ $mimetype = 'choose';
+
// Create a status editor (for now - we'll need a WYSIWYG eventually) to create pages
// Nickname is set to the observers xchan, and profile_uid to the owners. This lets you post pages at other people's channels.
require_once ('include/conversation.php');
@@ -52,8 +56,7 @@ require_once ('include/conversation.php');
'bang' => (($group || $cid) ? '!' : ''),
'visitor' => 'block',
'profile_uid' => intval($owner),
- 'plaintext' => 1,
- 'mimeselect' => 1,
+ 'mimetype' => $mimetype,
);
$o .= status_editor($a,$x);