]> git.mxchange.org Git - friendica.git/blobdiff - mod/cal.php
Move Object\Contact to Model\Contact
[friendica.git] / mod / cal.php
index 170e7ea4c2f44dc55a8383f037b41280bdd1a4be..cef9857ea934d84bf794682d2c4744453b6784c4 100644 (file)
@@ -5,13 +5,13 @@
  *     This calendar is for profile visitors and contains only the events
  *     of the profile owner
  */
-
 use Friendica\App;
+use Friendica\Content\Feature;
 use Friendica\Core\Config;
 use Friendica\Core\PConfig;
 use Friendica\Core\System;
 use Friendica\Database\DBM;
-use Friendica\Object\Contact;
+use Friendica\Model\Contact;
 
 require_once 'include/event.php';
 require_once 'include/redir.php';
@@ -301,7 +301,7 @@ function cal_content(App $a) {
 
                // Test permissions
                // Respect the export feature setting for all other /cal pages if it's not the own profile
-               if( ((local_user() !== intval($owner_uid))) && ! feature_enabled($owner_uid, "export_calendar")) {
+               if( ((local_user() !== intval($owner_uid))) && ! Feature::isEnabled($owner_uid, "export_calendar")) {
                        notice( t('Permission denied.') . EOL);
                        goaway('cal/' . $nick);
                }