mirror of
https://github.com/friendica/friendica
synced 2025-04-25 17:10:11 +00:00
Issue-#3873
Replace deprecated functions with new syntax.
This commit is contained in:
parent
9eb1f4b9c3
commit
0dfa57948f
124 changed files with 819 additions and 679 deletions
|
@ -816,7 +816,7 @@ class Worker {
|
|||
return;
|
||||
}
|
||||
|
||||
set_config("system", "worker_started", time());
|
||||
Config::set("system", "worker_started", time());
|
||||
|
||||
// Do we have enough running workers? Then we quit here.
|
||||
if (self::tooMuchWorkers()) {
|
||||
|
@ -935,7 +935,7 @@ class Worker {
|
|||
}
|
||||
|
||||
$priority = PRIORITY_MEDIUM;
|
||||
$dont_fork = get_config("system", "worker_dont_fork");
|
||||
$dont_fork = Config::get("system", "worker_dont_fork");
|
||||
$created = datetime_convert();
|
||||
|
||||
if (is_int($run_parameter)) {
|
||||
|
|
|
@ -11,6 +11,7 @@ namespace Friendica\Network;
|
|||
use Friendica\App;
|
||||
use Friendica\Core\System;
|
||||
use Friendica\Core\Config;
|
||||
use Friendica\Network\Probe;
|
||||
|
||||
use dba;
|
||||
use dbm;
|
||||
|
@ -309,7 +310,7 @@ class Probe {
|
|||
public static function uri($uri, $network = "", $uid = -1, $cache = true) {
|
||||
|
||||
if ($cache) {
|
||||
$result = Cache::get("probe_url:".$network.":".$uri);
|
||||
$result = Cache::get("Probe::uri:".$network.":".$uri);
|
||||
if (!is_null($result)) {
|
||||
return $result;
|
||||
}
|
||||
|
@ -361,7 +362,7 @@ class Probe {
|
|||
|
||||
// Only store into the cache if the value seems to be valid
|
||||
if (!in_array($data['network'], array(NETWORK_PHANTOM, NETWORK_MAIL))) {
|
||||
Cache::set("probe_url:".$network.":".$uri, $data, CACHE_DAY);
|
||||
Cache::set("Probe::uri:".$network.":".$uri, $data, CACHE_DAY);
|
||||
|
||||
/// @todo temporary fix - we need a real contact update function that updates only changing fields
|
||||
/// The biggest problem is the avatar picture that could have a reduced image size.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue