1
0
Fork 0

Fix require_once format

This commit is contained in:
Hypolite Petovan 2017-05-07 14:40:23 -04:00
commit 82b423c5ac
21 changed files with 104 additions and 108 deletions

View file

@ -91,11 +91,11 @@ function terminate_friendship($user,$self,$contact) {
/// @TODO Get rid of this, include/datetime.php should care about it by itself
$a = get_app();
require_once('include/datetime.php');
require_once 'include/datetime.php';
if ($contact['network'] === NETWORK_OSTATUS) {
require_once('include/ostatus.php');
require_once 'include/ostatus.php';
// create an unfollow slap
$item = array();
@ -104,14 +104,14 @@ function terminate_friendship($user,$self,$contact) {
$slap = ostatus::salmon($item, $user);
if ((x($contact,'notify')) && (strlen($contact['notify']))) {
require_once('include/salmon.php');
require_once 'include/salmon.php';
slapper($user,$contact['notify'],$slap);
}
} elseif ($contact['network'] === NETWORK_DIASPORA) {
require_once('include/diaspora.php');
require_once 'include/diaspora.php';
Diaspora::send_unshare($user,$contact);
} elseif ($contact['network'] === NETWORK_DFRN) {
require_once('include/dfrn.php');
require_once 'include/dfrn.php';
dfrn::deliver($user,$contact,'placeholder', 1);
}
@ -706,7 +706,7 @@ function get_contact($url, $uid = 0, $no_update = false) {
*/
function posts_from_gcontact(App $a, $gcontact_id) {
require_once('include/conversation.php');
require_once 'include/conversation.php';
// There are no posts with "uid = 0" with connector networks
// This speeds up the query a lot
@ -745,7 +745,7 @@ function posts_from_gcontact(App $a, $gcontact_id) {
*/
function posts_from_contact_url(App $a, $contact_url) {
require_once('include/conversation.php');
require_once 'include/conversation.php';
// There are no posts with "uid = 0" with connector networks
// This speeds up the query a lot