]> git.mxchange.org Git - friendica.git/blobdiff - mod/events.php
Merge pull request #4577 from MrPetovan/task/add-feedtest-module
[friendica.git] / mod / events.php
index 5f6fb2c68930676cda16b16012dd8f1e0b5450ad..8dab59b0380c6403f76c90218cf0588c91ad1a1c 100644 (file)
@@ -6,6 +6,7 @@
 
 use Friendica\App;
 use Friendica\Content\Nav;
+use Friendica\Core\ACL;
 use Friendica\Core\L10n;
 use Friendica\Core\System;
 use Friendica\Core\Worker;
@@ -15,7 +16,6 @@ use Friendica\Model\Profile;
 use Friendica\Util\DateTimeFormat;
 use Friendica\Util\Temporal;
 
-require_once 'include/bbcode.php';
 require_once 'include/event.php';
 require_once 'include/items.php';
 
@@ -479,12 +479,10 @@ function events_content(App $a) {
                $fhour   = ((x($orig_event)) ? DateTimeFormat::convert($fdt, $tz, 'UTC', 'H') : '00');
                $fminute = ((x($orig_event)) ? DateTimeFormat::convert($fdt, $tz, 'UTC', 'i') : '00');
 
-               require_once 'include/acl_selectors.php' ;
-
-               $perms = get_acl_permissions($orig_event);
+               $perms = ACL::getDefaultUserPermissions($orig_event);
 
                if ($mode === 'new' || $mode === 'copy') {
-                       $acl = (($cid) ? '' : populate_acl(((x($orig_event)) ? $orig_event : $a->user)));
+                       $acl = (($cid) ? '' : ACL::getFullSelectorHTML(((x($orig_event)) ? $orig_event : $a->user)));
                }
 
                // If we copy an old event, we need to remove the ID and URI