aboutsummaryrefslogtreecommitdiffstats
path: root/mod/editwebpage.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/editwebpage.php')
-rw-r--r--mod/editwebpage.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/mod/editwebpage.php b/mod/editwebpage.php
index 6ce5a9493..66137c474 100644
--- a/mod/editwebpage.php
+++ b/mod/editwebpage.php
@@ -71,8 +71,11 @@ function editwebpage_content(&$a) {
if($mimetype != 'text/bbcode')
$plaintext = true;
- $mimeselect = '<input type="hidden" name="mimetype" value="' . $mimetype . '" />';
-
+
+ if(get_config('system','page_mimetype'))
+ $mimeselect = '<input type="hidden" name="mimetype" value="' . $mimetype . '" />';
+ else
+ $mimeselect = mimetype_select($item[0]['uid'],$mimetype);
$layout = get_config('system','page_layout');
if($layout)