Revert - see comments.

This commit is contained in:
Thomas Willingham 2014-08-26 20:13:27 +01:00
parent cc2bef67dd
commit 450434a690

6
include/text.php Executable file → Normal file
View File

@ -1552,6 +1552,7 @@ function mimetype_select($channel_id, $current = 'text/bbcode') {
$x = array(
'text/bbcode',
'text/html',
'text/markdown',
'text/plain'
);
@ -1563,12 +1564,10 @@ function mimetype_select($channel_id, $current = 'text/bbcode') {
if($r) {
if($r[0]['account_roles'] & ACCOUNT_ROLE_ALLOWCODE) {
if(local_user() && get_account_id() == $r[0]['account_id']) {
$x[] = 'text/html';
if(local_user() && get_account_id() == $r[0]['account_id'])
$x[] = 'application/x-php';
}
}
}
$o = t('Page content type: ');
$o .= '<select name="mimetype" id="mimetype-select">';
@ -2023,3 +2022,4 @@ function normalise_openid($s) {
return trim(str_replace(array('http://','https://'),array('',''),$s),'/');
}