aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2016-12-26 14:17:40 -0800
committerzotlabs <mike@macgirvin.com>2016-12-26 14:17:40 -0800
commit286c3eafe365c80022602696621c604760ecc8c5 (patch)
tree6f92a1b6d7378db211bcbb65fa1e555a72f73c06
parent3bb6c667db9b8d833fa9eca1dd744ad4ad05eebd (diff)
downloadvolse-hubzilla-286c3eafe365c80022602696621c604760ecc8c5.tar.gz
volse-hubzilla-286c3eafe365c80022602696621c604760ecc8c5.tar.bz2
volse-hubzilla-286c3eafe365c80022602696621c604760ecc8c5.zip
minor cleanup
-rw-r--r--Zotlabs/Module/Item.php9
1 files changed, 3 insertions, 6 deletions
diff --git a/Zotlabs/Module/Item.php b/Zotlabs/Module/Item.php
index bebe5e89b..7f2813076 100644
--- a/Zotlabs/Module/Item.php
+++ b/Zotlabs/Module/Item.php
@@ -21,6 +21,7 @@ require_once('include/crypto.php');
require_once('include/items.php');
require_once('include/attach.php');
require_once('include/bbcode.php');
+require_once('include/security.php');
use \Zotlabs\Lib as Zlib;
@@ -34,9 +35,7 @@ class Item extends \Zotlabs\Web\Controller {
if((! local_channel()) && (! remote_channel()) && (! x($_REQUEST,'commenter')))
return;
-
- require_once('include/security.php');
-
+
$uid = local_channel();
$channel = null;
$observer = null;
@@ -1036,9 +1035,7 @@ class Item extends \Zotlabs\Web\Controller {
if((! local_channel()) && (! remote_channel()))
return;
-
- require_once('include/security.php');
-
+
if((argc() == 3) && (argv(1) === 'drop') && intval(argv(2))) {
require_once('include/items.php');