diff options
author | friendica <info@friendica.com> | 2014-01-03 14:18:48 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-01-03 14:18:48 -0800 |
commit | 9f4e9f247a032d6e88d677474ead0d9cdaca22bb (patch) | |
tree | 3e5e49ceda28f7aba1310504c9ba78724e483f46 /mod | |
parent | f2ba6ed9982ee4b3b80331a195534f74e510d508 (diff) | |
parent | 24850a4ea4676c96b6e0f97b45b23fe12e1c80a2 (diff) | |
download | volse-hubzilla-9f4e9f247a032d6e88d677474ead0d9cdaca22bb.tar.gz volse-hubzilla-9f4e9f247a032d6e88d677474ead0d9cdaca22bb.tar.bz2 volse-hubzilla-9f4e9f247a032d6e88d677474ead0d9cdaca22bb.zip |
Merge https://github.com/friendica/red into zpull
Diffstat (limited to 'mod')
-rw-r--r-- | mod/editpost.php | 1 | ||||
-rw-r--r-- | mod/editwebpage.php | 5 | ||||
-rw-r--r-- | mod/item.php | 3 |
3 files changed, 6 insertions, 3 deletions
diff --git a/mod/editpost.php b/mod/editpost.php index f012c47cd..7cc33d60d 100644 --- a/mod/editpost.php +++ b/mod/editpost.php @@ -50,6 +50,7 @@ function editpost_content(&$a) { '$geotag' => $geotag, '$nickname' => $channel['channel_address'], '$expireswhen' => t('Expires YYYY-MM-DD HH:MM'), + '$confirmdelete' => t('Delete item?'), )); diff --git a/mod/editwebpage.php b/mod/editwebpage.php index 85bd9e918..00659b4b7 100644 --- a/mod/editwebpage.php +++ b/mod/editwebpage.php @@ -112,7 +112,8 @@ function editwebpage_content(&$a) { '$editselect' => (($plaintext) ? 'none' : '/(profile-jot-text|prvmail-text)/'), '$ispublic' => ' ', // t('Visible to <strong>everybody</strong>'), '$geotag' => $geotag, - '$nickname' => $a->user['nickname'] + '$nickname' => $a->user['nickname'], + '$confirmdelete' => t('Delete webpage?') )); @@ -185,7 +186,7 @@ function editwebpage_content(&$a) { $ob = get_observer_hash(); if(($itm[0]['author_xchan'] === $ob) || ($itm[0]['owner_xchan'] === $ob)) - $o .= '<br /><br /><a href="item/drop/' . $itm[0]['id'] . '" >' . t('Delete Webpage') . '</a><br />'; + $o .= '<br /><br /><a class="page-delete-link" href="item/drop/' . $itm[0]['id'] . '" >' . t('Delete Webpage') . '</a><br />'; return $o; diff --git a/mod/item.php b/mod/item.php index 444248846..2c0a36d52 100644 --- a/mod/item.php +++ b/mod/item.php @@ -1146,8 +1146,9 @@ function item_check_service_class($channel_id,$iswebpage) { if ($iswebpage) { $r = q("select count(i.id) as total from item i right join channel c on (i.author_xchan=c.channel_hash and i.uid=c.channel_id ) - and i.parent=i.id and (i.item_restrict & %d) and i.uid= %d ", + and i.parent=i.id and (i.item_restrict & %d) and not (i.item_restrict & %d) and i.uid= %d ", intval(ITEM_WEBPAGE), + intval(ITEM_DELETED), intval($channel_id) ); } |