From: Adam Magness Date: Wed, 10 Jan 2018 17:11:11 +0000 (-0500) Subject: Remove requires X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7723309310c33107cac0ca680e7057589361e898;p=friendica.git Remove requires Remove left over require_once statements. --- 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';