aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2021-02-23 10:02:15 +0000
committerMario <mario@mariovavti.com>2021-02-23 10:02:15 +0000
commit34aa8ba3ccba00d86d481663cef28e6d422ffbe3 (patch)
treee28763d8eb23907dfb99e7ca742e2cd6a6f3251b
parentddad4f604b56656086b32992ef98709be2568a37 (diff)
downloadvolse-hubzilla-34aa8ba3ccba00d86d481663cef28e6d422ffbe3.tar.gz
volse-hubzilla-34aa8ba3ccba00d86d481663cef28e6d422ffbe3.tar.bz2
volse-hubzilla-34aa8ba3ccba00d86d481663cef28e6d422ffbe3.zip
Rename photo storage type system variable
-rw-r--r--Zotlabs/Update/_1243.php17
-rw-r--r--boot.php2
2 files changed, 18 insertions, 1 deletions
diff --git a/Zotlabs/Update/_1243.php b/Zotlabs/Update/_1243.php
new file mode 100644
index 000000000..850cb1d6c
--- /dev/null
+++ b/Zotlabs/Update/_1243.php
@@ -0,0 +1,17 @@
+<?php
+
+namespace Zotlabs\Update;
+
+class _1243 {
+
+ function run() {
+
+ $x = get_config('system','filesystem_storage_thumbnails');
+ del_config('system','filesystem_storage_thumbnails');
+ if ($x !== false)
+ set_config('system','photo_storage_type', intval($x));
+
+ return UPDATE_SUCCESS;
+ }
+
+}
diff --git a/boot.php b/boot.php
index de3345c70..5c8bd3ed3 100644
--- a/boot.php
+++ b/boot.php
@@ -55,7 +55,7 @@ define ( 'PLATFORM_NAME', 'hubzilla' );
define ( 'STD_VERSION', '5.3.4' );
define ( 'ZOT_REVISION', '6.0' );
-define ( 'DB_UPDATE_VERSION', 1242 );
+define ( 'DB_UPDATE_VERSION', 1243 );
define ( 'PROJECT_BASE', __DIR__ );