Revert - see comments.
This commit is contained in:
parent
cc2bef67dd
commit
450434a690
6
include/text.php
Executable file → Normal file
6
include/text.php
Executable file → Normal file
@ -1552,6 +1552,7 @@ function mimetype_select($channel_id, $current = 'text/bbcode') {
|
|||||||
|
|
||||||
$x = array(
|
$x = array(
|
||||||
'text/bbcode',
|
'text/bbcode',
|
||||||
|
'text/html',
|
||||||
'text/markdown',
|
'text/markdown',
|
||||||
'text/plain'
|
'text/plain'
|
||||||
);
|
);
|
||||||
@ -1563,12 +1564,10 @@ function mimetype_select($channel_id, $current = 'text/bbcode') {
|
|||||||
|
|
||||||
if($r) {
|
if($r) {
|
||||||
if($r[0]['account_roles'] & ACCOUNT_ROLE_ALLOWCODE) {
|
if($r[0]['account_roles'] & ACCOUNT_ROLE_ALLOWCODE) {
|
||||||
if(local_user() && get_account_id() == $r[0]['account_id']) {
|
if(local_user() && get_account_id() == $r[0]['account_id'])
|
||||||
$x[] = 'text/html';
|
|
||||||
$x[] = 'application/x-php';
|
$x[] = 'application/x-php';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
$o = t('Page content type: ');
|
$o = t('Page content type: ');
|
||||||
$o .= '<select name="mimetype" id="mimetype-select">';
|
$o .= '<select name="mimetype" id="mimetype-select">';
|
||||||
@ -2023,3 +2022,4 @@ function normalise_openid($s) {
|
|||||||
return trim(str_replace(array('http://','https://'),array('',''),$s),'/');
|
return trim(str_replace(array('http://','https://'),array('',''),$s),'/');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user