From 80f2ba640ec528bd43db243122a69e765703b7c0 Mon Sep 17 00:00:00 2001 From: redmatrix Date: Tue, 24 May 2016 20:49:23 -0700 Subject: code cleanup --- include/Import/import_diaspora.php | 1 - include/account.php | 3 ++- include/acl_selectors.php | 4 ---- include/activities.php | 1 - include/api.php | 3 --- include/bb2diaspora.php | 2 -- include/bbcode.php | 3 --- include/config.php | 14 +++----------- include/connections.php | 4 +--- include/conversation.php | 8 +++----- include/datetime.php | 1 - include/follow.php | 1 - include/help.php | 2 -- include/language.php | 6 ------ include/network.php | 9 --------- include/oembed.php | 2 +- include/photo/photo_driver.php | 6 +----- include/photos.php | 2 -- include/plugin.php | 11 +++++------ include/text.php | 28 ++++++++-------------------- include/widgets.php | 1 - include/zot.php | 4 ---- 22 files changed, 24 insertions(+), 92 deletions(-) (limited to 'include') diff --git a/include/Import/import_diaspora.php b/include/Import/import_diaspora.php index a94e73395..b664badf1 100644 --- a/include/Import/import_diaspora.php +++ b/include/Import/import_diaspora.php @@ -6,7 +6,6 @@ require_once('include/follow.php'); require_once('include/photo/photo_driver.php'); function import_diaspora($data) { - $a = get_app(); $account = App::get_account(); if(! $account) diff --git a/include/account.php b/include/account.php index e367e002d..a442f3073 100644 --- a/include/account.php +++ b/include/account.php @@ -656,7 +656,8 @@ function account_service_class_allows($aid, $property, $usage = false) { * @todo Should we merge this with account_service_class_fetch()? */ function service_class_fetch($uid, $property) { - $a = get_app(); + + if($uid == local_channel()) { $service_class = App::$account['account_service_class']; } diff --git a/include/acl_selectors.php b/include/acl_selectors.php index 886574714..1f97a7a7b 100644 --- a/include/acl_selectors.php +++ b/include/acl_selectors.php @@ -11,8 +11,6 @@ require_once("include/PermissionDescription.php"); function group_select($selname,$selclass,$preselected = false,$size = 4) { - $a = get_app(); - $o = ''; $o .= "