X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fwall_upload.php;h=3bd3d8dc2657c57c6854f39313a933766f999061;hb=c273adf0fe21f9e675ba0598ba6b748ad0b41517;hp=ee1bf3c14c68742a8e78aeb0a64bcad7240dbc46;hpb=5d22b13242849887978455f1f252b6129ebd52aa;p=friendica.git
diff --git a/mod/wall_upload.php b/mod/wall_upload.php
index ee1bf3c14c..3bd3d8dc26 100644
--- a/mod/wall_upload.php
+++ b/mod/wall_upload.php
@@ -1,9 +1,11 @@
argc > 1) {
if(! x($_FILES,'media')) {
$nick = $a->argv[1];
@@ -158,15 +160,14 @@ function wall_upload_post(&$a) {
//if we get the signal then return the image url info in BBCODE, otherwise this outputs the info and bails (for the ajax image uploader on wall post)
if ($_REQUEST['hush']!='yeah') {
-
- /*existing code*/
- if(local_user() && intval(get_pconfig(local_user(),'system','plaintext')))
+ if(local_user() && (! feature_enabled(local_user(),'richtext') || x($_REQUEST['nomce'])) ) {
echo "\n\n" . '[url=' . $a->get_baseurl() . '/photos/' . $page_owner_nick . '/image/' . $hash . '][img]' . $a->get_baseurl() . "/photo/{$hash}-{$smallest}.".$ph->getExt()."[/img][/url]\n\n";
- else
+ }
+ else {
echo '
getExt()."\" alt=\"$basename\" />
";
- /*existing code*/
-
- } else {
+ }
+ }
+ else {
$m = '[url=' . $a->get_baseurl() . '/photos/' . $page_owner_nick . '/image/' . $hash . '][img]' . $a->get_baseurl() . "/photo/{$hash}-{$smallest}.".$ph->getExt()."[/img][/url]";
return($m);
}