aboutsummaryrefslogtreecommitdiffstats
path: root/mod/wall_upload.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-02-07 00:13:16 -0800
committerfriendica <info@friendica.com>2012-02-07 00:13:16 -0800
commitc6cdad946eac99ced15cd8fa294ab0fdaa05f3a5 (patch)
tree02840c9f80b87bc4fd480386cfbbb8f8871453b1 /mod/wall_upload.php
parent2b77002471fc9b2e1ad3e8dd69d373cc910e8834 (diff)
downloadvolse-hubzilla-c6cdad946eac99ced15cd8fa294ab0fdaa05f3a5.tar.gz
volse-hubzilla-c6cdad946eac99ced15cd8fa294ab0fdaa05f3a5.tar.bz2
volse-hubzilla-c6cdad946eac99ced15cd8fa294ab0fdaa05f3a5.zip
more fixes for textmode
Diffstat (limited to 'mod/wall_upload.php')
-rwxr-xr-xmod/wall_upload.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/mod/wall_upload.php b/mod/wall_upload.php
index b34f2cf6b..278c21354 100755
--- a/mod/wall_upload.php
+++ b/mod/wall_upload.php
@@ -100,7 +100,11 @@ function wall_upload_post(&$a) {
}
$basename = basename($filename);
- echo '<br /><br /><a href="' . $a->get_baseurl() . '/photos/' . $page_owner_nick . '/image/' . $hash . '" ><img src="' . $a->get_baseurl() . "/photo/{$hash}-{$smallest}.jpg\" alt=\"$basename\" /></a><br /><br />";
+
+ if(local_user() && intval(get_pconfig(local_user(),'system','plaintext')))
+ echo "\n\n" . '[url=' . $a->get_baseurl() . '/photos/' . $page_owner_nick . '/image/' . $hash . '][img]' . $a->get_baseurl() . "/photo/{$hash}-{$smallest}.jpg[/img][/url]\n\n";
+ else
+ echo '<br /><br /><a href="' . $a->get_baseurl() . '/photos/' . $page_owner_nick . '/image/' . $hash . '" ><img src="' . $a->get_baseurl() . "/photo/{$hash}-{$smallest}.jpg\" alt=\"$basename\" /></a><br /><br />";
killme();
// NOTREACHED