]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/Realtime/closechannel.php
Fix Bug#3260 for 1.0.x
[quix0rs-gnu-social.git] / plugins / Realtime / closechannel.php
index f07e24b29755c4ea2f59e263f288f5d562143f1a..63c616e5dba8067e30f87d56c94b34b0c75cc0de 100644 (file)
@@ -66,7 +66,7 @@ class ClosechannelAction extends Action
             throw new ClientException(_m('You have to POST it.'));
         }
 
-        $this->channelKey = $this->trimmed('channel_key');
+        $this->channelKey = $this->trimmed('channelkey');
 
         if (empty($this->channelKey)) {
             throw new ClientException(_m('No channel key argument.'));
@@ -91,7 +91,7 @@ class ClosechannelAction extends Action
 
     function handle($argarray=null)
     {
-        $this->channel->delete();
+        $this->channel->decrement();
 
         header('HTTP/1.1 204 No Content');