diff options
author | Mario Vavti <mario@mariovavti.com> | 2015-04-14 11:50:21 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2015-04-14 11:50:21 +0200 |
commit | bf2a97147ecef7528e9adbed3cf4a1f3af03ad72 (patch) | |
tree | fbb4a46a9a68734f2f41b1c36cdf27557db2866a /mod | |
parent | 865b602cf8b4eff5e7da00362df95e52e2fe4f77 (diff) | |
download | volse-hubzilla-bf2a97147ecef7528e9adbed3cf4a1f3af03ad72.tar.gz volse-hubzilla-bf2a97147ecef7528e9adbed3cf4a1f3af03ad72.tar.bz2 volse-hubzilla-bf2a97147ecef7528e9adbed3cf4a1f3af03ad72.zip |
some more on webpages
Diffstat (limited to 'mod')
-rw-r--r-- | mod/editwebpage.php | 2 | ||||
-rw-r--r-- | mod/webpages.php | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/mod/editwebpage.php b/mod/editwebpage.php index e81cde479..e30a33171 100644 --- a/mod/editwebpage.php +++ b/mod/editwebpage.php @@ -126,7 +126,7 @@ function editwebpage_content(&$a) { $plaintext = true; if(get_config('system','page_mimetype')) - $mimeselect = '<input type="hidden" name="mimetype" value="' . $mimetype . '" />'; + $mimeselect = '<input type="hidden" name="mimetype" value="' . $mimetype . '" />'; else $mimeselect = mimetype_select($itm[0]['uid'],$mimetype); diff --git a/mod/webpages.php b/mod/webpages.php index b4c4e6e4e..2b284813a 100644 --- a/mod/webpages.php +++ b/mod/webpages.php @@ -70,10 +70,10 @@ function webpages_content(&$a) { return; } - if(feature_enabled($owner,'expert') || $a->is_sys) { - $mimetype = (($_REQUEST['mimetype']) ? $_REQUEST['mimetype'] : get_pconfig($owner,'system','page_mimetype')); - if(! $mimetype) - $mimetype = 'choose'; + $mimetype = (($_REQUEST['mimetype']) ? $_REQUEST['mimetype'] : get_pconfig($owner,'system','page_mimetype')); + + if(! $mimetype) { + $mimetype = 'choose'; } else { $mimetype = 'text/bbcode'; |