aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2020-05-07 07:55:05 +0000
committerMario <mario@mariovavti.com>2020-05-07 07:55:05 +0000
commita04b6d178bd4a5facc827c6ac3b9a51b1a0c88d9 (patch)
treef8c78129ccab3e1b165f5e655f0866a91321669c
parentc8b45c3449dd36c533cde2600920186fc941c8c8 (diff)
downloadvolse-hubzilla-a04b6d178bd4a5facc827c6ac3b9a51b1a0c88d9.tar.gz
volse-hubzilla-a04b6d178bd4a5facc827c6ac3b9a51b1a0c88d9.tar.bz2
volse-hubzilla-a04b6d178bd4a5facc827c6ac3b9a51b1a0c88d9.zip
deprecate premium channel app
-rw-r--r--Zotlabs/Lib/Apps.php1
-rw-r--r--Zotlabs/Update/_1237.php25
-rw-r--r--app/premium_channel.apd6
-rwxr-xr-xboot.php2
4 files changed, 26 insertions, 8 deletions
diff --git a/Zotlabs/Lib/Apps.php b/Zotlabs/Lib/Apps.php
index d65eed14f..f11bb9628 100644
--- a/Zotlabs/Lib/Apps.php
+++ b/Zotlabs/Lib/Apps.php
@@ -372,7 +372,6 @@ class Apps {
'OAuth2 Apps Manager' => t('OAuth2 Apps Manager'),
'PDL Editor' => t('PDL Editor'),
'Permission Categories' => t('Permission Categories'),
- 'Premium Channel' => t('Premium Channel'),
'Public Stream' => t('Public Stream'),
'My Chatrooms' => t('My Chatrooms'),
'Channel Export' => t('Channel Export')
diff --git a/Zotlabs/Update/_1237.php b/Zotlabs/Update/_1237.php
new file mode 100644
index 000000000..6c998ba4f
--- /dev/null
+++ b/Zotlabs/Update/_1237.php
@@ -0,0 +1,25 @@
+<?php
+
+namespace Zotlabs\Update;
+
+class _1237 {
+
+ function run() {
+
+ q("START TRANSACTION");
+
+ $r = q("DELETE FROM app WHERE app_name = '%s'",
+ dbesc('Premium Channel')
+ );
+
+ if($r) {
+ q("COMMIT");
+ return UPDATE_SUCCESS;
+ }
+
+ q("ROLLBACK");
+ return UPDATE_FAILED;
+
+ }
+
+}
diff --git a/app/premium_channel.apd b/app/premium_channel.apd
deleted file mode 100644
index 9764051d1..000000000
--- a/app/premium_channel.apd
+++ /dev/null
@@ -1,6 +0,0 @@
-version: 2
-url: $baseurl/connect/$nick
-requires: local_channel
-name: Premium Channel
-photo: icon:check-circle-o
-categories: Networking
diff --git a/boot.php b/boot.php
index c574b84fb..b02a2a84a 100755
--- a/boot.php
+++ b/boot.php
@@ -53,7 +53,7 @@ define ( 'PLATFORM_NAME', 'hubzilla' );
define ( 'STD_VERSION', '4.7.6' );
define ( 'ZOT_REVISION', '6.0a' );
-define ( 'DB_UPDATE_VERSION', 1236 );
+define ( 'DB_UPDATE_VERSION', 1237 );
define ( 'PROJECT_BASE', __DIR__ );