aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rwxr-xr-xinclude/items.php4
-rw-r--r--include/widgets.php3
2 files changed, 5 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;
}
diff --git a/include/widgets.php b/include/widgets.php
index 799310908..98ea4e6a1 100644
--- a/include/widgets.php
+++ b/include/widgets.php
@@ -945,6 +945,8 @@ function widget_wiki_pages($arr) {
}
$can_create = perm_is_allowed(\App::$profile['uid'],get_observer_hash(),'write_pages');
+ $can_delete = ((local_channel() && (local_channel() == \App::$profile['uid'])) ? true : false);
+
return replace_macros(get_markup_template('wiki_page_list.tpl'), array(
'$hide' => $hide,
'$resource_id' => $arr['resource_id'],
@@ -954,6 +956,7 @@ function widget_wiki_pages($arr) {
'$wikiname' => $wikiname,
'$pages' => $pages,
'$canadd' => $can_create,
+ '$candel' => $can_delete,
'$addnew' => t('Add new page'),
'$pageName' => array('pageName', t('Page name')),
));