aboutsummaryrefslogtreecommitdiffstats
path: root/include/items.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-01-25 12:21:52 -0800
committerzotlabs <mike@macgirvin.com>2017-01-25 12:21:52 -0800
commit45dbd31d286838254cd1ae60e4ebb39c112526be (patch)
treeba4bd74b443e45da3e21a3daccfa246c247fd34e /include/items.php
parent45a9eca792b349984ca11ab9a65e87e65625a718 (diff)
downloadvolse-hubzilla-45dbd31d286838254cd1ae60e4ebb39c112526be.tar.gz
volse-hubzilla-45dbd31d286838254cd1ae60e4ebb39c112526be.tar.bz2
volse-hubzilla-45dbd31d286838254cd1ae60e4ebb39c112526be.zip
only allow wiki owner to delete pages
Diffstat (limited to 'include/items.php')
-rwxr-xr-xinclude/items.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/items.php b/include/items.php
index 5986038bc..66ec2ffea 100755
--- a/include/items.php
+++ b/include/items.php
@@ -3311,7 +3311,7 @@ function retain_item($id) {
);
}
-function drop_items($items) {
+function drop_items($items,$interactive = false,$stage = DROPITEM_NORMAL,$force = false) {
$uid = 0;
if(! local_channel() && ! remote_channel())
@@ -3319,7 +3319,7 @@ function drop_items($items) {
if(count($items)) {
foreach($items as $item) {
- $owner = drop_item($item,false);
+ $owner = drop_item($item,$interactive,$stage,$force);
if($owner && ! $uid)
$uid = $owner;
}