From 0f1be372797c3911323c15b85a82ea47db0608f8 Mon Sep 17 00:00:00 2001 From: Adam Magness Date: Sat, 27 Jan 2018 08:28:20 -0500 Subject: [PATCH] Remove old file remove network.php and all require_once statements --- boot.php | 1 - include/bbcode.php | 4 --- include/network.php | 58 -------------------------------- src/Content/Text/BBCode.php | 1 - src/Model/GContact.php | 1 - src/Model/User.php | 1 - src/Network/Probe.php | 2 +- src/Protocol/PortableContact.php | 1 - src/Util/ParseUrl.php | 1 - 9 files changed, 1 insertion(+), 69 deletions(-) delete mode 100644 include/network.php diff --git a/boot.php b/boot.php index ede6fc77b9..98db95227f 100644 --- a/boot.php +++ b/boot.php @@ -32,7 +32,6 @@ use Friendica\Model\Contact; use Friendica\Database\DBStructure; use Friendica\Module\Login; -require_once 'include/network.php'; require_once 'include/text.php'; require_once 'include/datetime.php'; diff --git a/include/bbcode.php b/include/bbcode.php index 0544c4c616..8f758ae616 100644 --- a/include/bbcode.php +++ b/include/bbcode.php @@ -748,8 +748,6 @@ function bb_RemovePictureLinks($match) { $text = "[url=".$match[2]."]".$match[2]."[/url]"; // if its not a picture then look if its a page that contains a picture link - require_once("include/network.php"); - $body = Network::fetchURL($match[1]); $doc = new DOMDocument(); @@ -805,8 +803,6 @@ function bb_CleanPictureLinksSub($match) { $text = "[img]".$match[2]."[/img]"; // if its not a picture then look if its a page that contains a picture link - require_once("include/network.php"); - $body = Network::fetchURL($match[1]); $doc = new DOMDocument(); diff --git a/include/network.php b/include/network.php deleted file mode 100644 index 840991aa52..0000000000 --- a/include/network.php +++ /dev/null @@ -1,58 +0,0 @@ -