aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Photo/PhotoDriver.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2024-07-06 11:05:22 +0000
committerMario <mario@mariovavti.com>2024-07-06 11:05:22 +0000
commit45275910e606a02b12393714ea3b0409da440d61 (patch)
tree10b2d173d58cb930f8df28fe75af73dd4974c08c /Zotlabs/Photo/PhotoDriver.php
parent0c1d0f7498661fb34dcca6f3c6566e757af310a7 (diff)
parentc04e781926a78e514cdf211fa24930a331149072 (diff)
downloadvolse-hubzilla-45275910e606a02b12393714ea3b0409da440d61.tar.gz
volse-hubzilla-45275910e606a02b12393714ea3b0409da440d61.tar.bz2
volse-hubzilla-45275910e606a02b12393714ea3b0409da440d61.zip
Merge branch '9.2RC'master
Diffstat (limited to 'Zotlabs/Photo/PhotoDriver.php')
-rw-r--r--Zotlabs/Photo/PhotoDriver.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/Zotlabs/Photo/PhotoDriver.php b/Zotlabs/Photo/PhotoDriver.php
index fc34f87a9..e8b42ec1b 100644
--- a/Zotlabs/Photo/PhotoDriver.php
+++ b/Zotlabs/Photo/PhotoDriver.php
@@ -2,6 +2,7 @@
namespace Zotlabs\Photo;
+use Zotlabs\Lib\Config;
use Zotlabs\Lib\Hashpath;
/**
@@ -443,7 +444,7 @@ abstract class PhotoDriver {
$p['display_path'] = $arr['display_path'] ?? '';
$p['width'] = $arr['width'] ?? $this->getWidth();
$p['height'] = $arr['height'] ?? $this->getHeight();
- $p['expires'] = $arr['expires'] ?? gmdate('Y-m-d H:i:s', time() + get_config('system', 'photo_cache_time', 86400));
+ $p['expires'] = $arr['expires'] ?? gmdate('Y-m-d H:i:s', time() + Config::Get('system', 'photo_cache_time', 86400));
$p['profile'] = $arr['profile'] ?? 0;
if(! intval($p['imgscale']))
@@ -508,7 +509,7 @@ abstract class PhotoDriver {
$arr['imgscale'] = $scale;
- if(boolval(get_config('system','photo_storage_type', 1))) {
+ if(boolval(Config::Get('system','photo_storage_type', 1))) {
$arr['os_storage'] = 1;