From 7723309310c33107cac0ca680e7057589361e898 Mon Sep 17 00:00:00 2001 From: Adam Magness Date: Wed, 10 Jan 2018 12:11:11 -0500 Subject: [PATCH] Remove requires Remove left over require_once statements. --- include/text.php | 5 ++--- mod/item.php | 1 - 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/include/text.php b/include/text.php index f82a2ea3d3..232cbc5c9e 100644 --- a/include/text.php +++ b/include/text.php @@ -1926,9 +1926,8 @@ function file_tag_save_file($uid, $item, $file) return true; } -function file_tag_unsave_file($uid, $item, $file, $cat = false) { - require_once "include/files.php"; - +function file_tag_unsave_file($uid, $item, $file, $cat = false) +{ if (! intval($uid)) { return false; } diff --git a/mod/item.php b/mod/item.php index 868ed54ad5..e234ada983 100644 --- a/mod/item.php +++ b/mod/item.php @@ -29,7 +29,6 @@ use Friendica\Util\Emailer; require_once 'include/enotify.php'; require_once 'include/tags.php'; -require_once 'include/files.php'; require_once 'include/threads.php'; require_once 'include/text.php'; require_once 'include/items.php'; -- 2.39.5