Browse Source

Standard stuff

tags/3.5.2
Michael 3 years ago
parent
commit
f73389dd12
11 changed files with 21 additions and 20 deletions
  1. +2
    -2
      include/cron.php
  2. +1
    -1
      include/cronhooks.php
  3. +1
    -1
      include/dbupdate.php
  4. +4
    -4
      include/delivery.php
  5. +1
    -1
      include/directory.php
  6. +1
    -1
      include/discover_poco.php
  7. +2
    -2
      include/gprobe.php
  8. +3
    -3
      include/notifier.php
  9. +1
    -1
      include/onepoll.php
  10. +1
    -1
      include/pubsubpublish.php
  11. +4
    -3
      include/update_gcontact.php

+ 2
- 2
include/cron.php View File

@@ -1,8 +1,8 @@
<?php
use \Friendica\Core\Config;

require_once("include/photos.php");
require_once("include/user.php");
require_once('include/photos.php');
require_once('include/user.php');

function cron_run(&$argv, &$argc){
global $a;


+ 1
- 1
include/cronhooks.php View File

@@ -16,7 +16,7 @@ function cronhooks_run(&$argv, &$argc){
return;
}

$last = get_config('system','last_cronhook');
$last = get_config('system', 'last_cronhook');

$poll_interval = intval(get_config('system','cronhook_interval'));
if(! $poll_interval)


+ 1
- 1
include/dbupdate.php View File

@@ -7,7 +7,7 @@ function dbupdate_run(&$argv, &$argc) {

// We are deleting the latest dbupdate entry.
// This is done to avoid endless loops because the update was interupted.
Config::delete('database','dbupdate_'.DB_UPDATE_VERSION);
Config::delete('database', 'dbupdate_'.DB_UPDATE_VERSION);

update_db($a);
}

+ 4
- 4
include/delivery.php View File

@@ -4,15 +4,15 @@ use \Friendica\Core\Config;

require_once('include/queue_fn.php');
require_once('include/html2plain.php');
require_once("include/Scrape.php");
require_once('include/Scrape.php');
require_once('include/diaspora.php');
require_once("include/ostatus.php");
require_once("include/dfrn.php");
require_once('include/ostatus.php');
require_once('include/dfrn.php');

function delivery_run(&$argv, &$argc){
global $a;

require_once("include/datetime.php");
require_once('include/datetime.php');
require_once('include/items.php');
require_once('include/bbcode.php');
require_once('include/email.php');


+ 1
- 1
include/directory.php View File

@@ -6,7 +6,7 @@ function directory_run(&$argv, &$argc){
return;
}

$dir = get_config('system','directory');
$dir = get_config('system', 'directory');

if (!strlen($dir)) {
return;


+ 1
- 1
include/discover_poco.php View File

@@ -2,7 +2,7 @@

use \Friendica\Core\Config;

require_once("include/socgraph.php");
require_once('include/socgraph.php');
require_once('include/datetime.php');

function discover_poco_run(&$argv, &$argc){


+ 2
- 2
include/gprobe.php View File

@@ -7,9 +7,9 @@ require_once('include/socgraph.php');
require_once('include/datetime.php');

function gprobe_run(&$argv, &$argc){
if($argc != 2)
if ($argc != 2) {
return;
}
$url = hex2bin($argv[1]);

$r = q("SELECT `id`, `url`, `network` FROM `gcontact` WHERE `nurl` = '%s' ORDER BY `id` LIMIT 1",


+ 3
- 3
include/notifier.php View File

@@ -4,9 +4,9 @@ use \Friendica\Core\Config;

require_once('include/queue_fn.php');
require_once('include/html2plain.php');
require_once("include/Scrape.php");
require_once('include/Scrape.php');
require_once('include/diaspora.php');
require_once("include/ostatus.php");
require_once('include/ostatus.php');
require_once('include/salmon.php');

/*
@@ -45,7 +45,7 @@ require_once('include/salmon.php');
function notifier_run(&$argv, &$argc){
global $a;

require_once("include/datetime.php");
require_once('include/datetime.php');
require_once('include/items.php');
require_once('include/bbcode.php');
require_once('include/email.php');


+ 1
- 1
include/onepoll.php View File

@@ -2,7 +2,7 @@

use \Friendica\Core\Config;

require_once("include/follow.php");
require_once('include/follow.php');

function RemoveReply($subject) {
while (in_array(strtolower(substr($subject, 0, 3)), array("re:", "aw:")))


+ 1
- 1
include/pubsubpublish.php View File

@@ -2,7 +2,7 @@
use \Friendica\Core\Config;

require_once('include/items.php');
require_once("include/ostatus.php");
require_once('include/ostatus.php');

function pubsubpublish_run(&$argv, &$argc){



+ 4
- 3
include/update_gcontact.php View File

@@ -6,14 +6,15 @@ function update_gcontact_run(&$argv, &$argc){
global $a;

require_once('include/Scrape.php');
require_once("include/socgraph.php");
require_once('include/socgraph.php');

logger('update_gcontact: start');

if(($argc > 1) && (intval($argv[1])))
if (($argc > 1) && (intval($argv[1]))) {
$contact_id = intval($argv[1]);
}

if(!$contact_id) {
if (!$contact_id) {
logger('update_gcontact: no contact');
return;
}


Loading…
Cancel
Save