aboutsummaryrefslogtreecommitdiffstats
path: root/mod/events.php
diff options
context:
space:
mode:
authorStefan Parviainen <saparvia@caterva.eu>2015-01-13 18:23:52 +0100
committerStefan Parviainen <saparvia@caterva.eu>2015-01-13 18:23:52 +0100
commit47a2668b30de34f1f08983ba485a630a89a9dd1e (patch)
tree31e9554690dd2032528ded48dbabec39fa661443 /mod/events.php
parent93735df2c78b249d5735834c190dc91bad336172 (diff)
downloadvolse-hubzilla-47a2668b30de34f1f08983ba485a630a89a9dd1e.tar.gz
volse-hubzilla-47a2668b30de34f1f08983ba485a630a89a9dd1e.tar.bz2
volse-hubzilla-47a2668b30de34f1f08983ba485a630a89a9dd1e.zip
Allow tags in event description and location
Diffstat (limited to 'mod/events.php')
-rwxr-xr-xmod/events.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/mod/events.php b/mod/events.php
index e016311d5..28a816ea4 100755
--- a/mod/events.php
+++ b/mod/events.php
@@ -75,6 +75,10 @@ function events_post(&$a) {
$location = escape_tags(trim($_POST['location']));
$type = 'event';
+ require_once('include/text.php');
+ linkify_tags($a, $desc, local_user());
+ linkify_tags($a, $location, local_user());
+
$action = ($event_hash == '') ? 'new' : "event/" . $event_hash;
$onerror_url = $a->get_baseurl() . "/events/" . $action . "?summary=$summary&description=$desc&location=$location&start=$start_text&finish=$finish_text&adjust=$adjust&nofinish=$nofinish";
if(strcmp($finish,$start) < 0 && !$nofinish) {