From: Adam Magness Date: Wed, 17 Jan 2018 18:55:29 +0000 (-0500) Subject: Remove require X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6c4c567319e9ba31170671e476ab6a34fa31f0df;p=friendica.git Remove require remove require_once for plugins.php --- diff --git a/include/friendica_smarty.php b/include/friendica_smarty.php index f0d819d623..a7d153e309 100644 --- a/include/friendica_smarty.php +++ b/include/friendica_smarty.php @@ -3,8 +3,6 @@ use Friendica\Core\Addon; use Friendica\Render\ITemplateEngine; -require_once "include/plugin.php"; - define('SMARTY3_TEMPLATE_FOLDER', 'templates'); class FriendicaSmarty extends Smarty diff --git a/mod/statistics_json.php b/mod/statistics_json.php index 94a7fc9e1c..f2c6e074f9 100644 --- a/mod/statistics_json.php +++ b/mod/statistics_json.php @@ -8,8 +8,6 @@ use Friendica\App; use Friendica\Core\Addon; use Friendica\Core\Config; -require_once("include/plugin.php"); - function statistics_json_init(App $a) { if (!Config::get("system", "nodeinfo")) { diff --git a/src/Content/Feature.php b/src/Content/Feature.php index d35fcf7030..47b72dce3d 100644 --- a/src/Content/Feature.php +++ b/src/Content/Feature.php @@ -9,8 +9,6 @@ use Friendica\Core\Addon; use Friendica\Core\Config; use Friendica\Core\PConfig; -require_once 'include/plugin.php'; - class Feature { /** diff --git a/src/Model/User.php b/src/Model/User.php index 57f1d0ab24..e8fdb4d040 100644 --- a/src/Model/User.php +++ b/src/Model/User.php @@ -27,7 +27,6 @@ require_once 'include/enotify.php'; require_once 'include/network.php'; require_once 'library/openid.php'; require_once 'include/pgettext.php'; -require_once 'include/plugin.php'; require_once 'include/text.php'; /** * @brief This class handles User related functions diff --git a/src/Network/FKOAuth1.php b/src/Network/FKOAuth1.php index 93e17a7045..49483fe272 100644 --- a/src/Network/FKOAuth1.php +++ b/src/Network/FKOAuth1.php @@ -16,7 +16,6 @@ use OAuthSignatureMethod_PLAINTEXT; use OAuthSignatureMethod_HMAC_SHA1; require_once "library/OAuth1.php"; -require_once "include/plugin.php"; /** * @brief OAuth protocol diff --git a/update.php b/update.php index 0dc3398ec4..ff0885229d 100644 --- a/update.php +++ b/update.php @@ -82,8 +82,6 @@ function update_1189() { function update_1191() { - require_once 'include/plugin.php'; - Config::set('system', 'maintenance', 1); if (Addon::isEnabled('forumlist')) { diff --git a/view/theme/vier/theme.php b/view/theme/vier/theme.php index 4a57199f16..57df31aeed 100644 --- a/view/theme/vier/theme.php +++ b/view/theme/vier/theme.php @@ -19,7 +19,6 @@ use Friendica\Database\DBM; use Friendica\Model\GContact; use Friendica\Model\Profile; -require_once "include/plugin.php"; require_once "mod/proxy.php"; function vier_init(App $a) {