aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorilu33 <ilu33@users.noreply.github.com>2016-12-15 05:55:23 +0100
committerGitHub <noreply@github.com>2016-12-15 05:55:23 +0100
commitf25189fc749f3ec9d00a3a0095215d4e47ccb63e (patch)
tree3b864082cbbb3f96c805801c10446ff573ee8dd0 /util
parent97f17374f26cd2949e487733d22c48d2607a04d8 (diff)
downloadvolse-hubzilla-f25189fc749f3ec9d00a3a0095215d4e47ccb63e.tar.gz
volse-hubzilla-f25189fc749f3ec9d00a3a0095215d4e47ccb63e.tar.bz2
volse-hubzilla-f25189fc749f3ec9d00a3a0095215d4e47ccb63e.zip
Drop on switch for notifications
Diffstat (limited to 'util')
-rw-r--r--util/nconfig.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/util/nconfig.php b/util/nconfig.php
index cb24b2151..a7cf350d0 100644
--- a/util/nconfig.php
+++ b/util/nconfig.php
@@ -2,7 +2,7 @@
<?php
/**
-* set channel email notifications utility
+* switch off channel email notifications utility
* This is a preliminary solution using the existing functions from include/channel.php.
* More options would be nice.
**/
@@ -19,7 +19,7 @@ cli_startup();
if($argc != 2) {
- echo 'Usage: util/nconfig channel_id|channel_address off|on' . PHP_EOL;
+ echo 'Usage: util/nconfig channel_id|channel_address off' . PHP_EOL;
exit(1);
}
@@ -39,9 +39,6 @@ cli_startup();
case 'off':
$result = notifications_off($c['channel_id']);
break;
- case 'on':
- $result = notifications_on($c['channel_id']);
- break;
default:
echo 'Only on or off in lower cases are allowed' . PHP_EOL;
exit(1);