-require_once('include/items.php');
-require_once('include/acl_selectors.php');
-require_once('include/bbcode.php');
-require_once('include/security.php');
-require_once('include/redir.php');
-
-
-function videos_init(App &$a) {
-
- if($a->argc > 1)
- auto_redir($a, $a->argv[1]);
+/**
+ * @file mod/videos.php
+ */
+
+use Friendica\App;
+use Friendica\Content\Nav;
+use Friendica\Core\Config;
+use Friendica\Core\L10n;
+use Friendica\Core\System;
+use Friendica\Database\DBA;
+use Friendica\Model\Contact;
+use Friendica\Model\Group;
+use Friendica\Model\Item;
+use Friendica\Model\Profile;
+use Friendica\Protocol\DFRN;
+
+require_once 'include/items.php';
+require_once 'include/security.php';
+
+function videos_init(App $a)
+{
+ if ($a->argc > 1) {
+ DFRN::autoRedir($a, $a->argv[1]);
+ }