aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
Diffstat (limited to 'mod')
-rw-r--r--mod/filerm.php21
-rwxr-xr-xmod/item.php2
-rwxr-xr-xmod/network.php2
-rwxr-xr-xmod/settings.php2
4 files changed, 24 insertions, 3 deletions
diff --git a/mod/filerm.php b/mod/filerm.php
new file mode 100644
index 000000000..66b684dc9
--- /dev/null
+++ b/mod/filerm.php
@@ -0,0 +1,21 @@
+<?php
+
+function filerm_content(&$a) {
+
+ if(! local_user()) {
+ killme();
+ }
+
+ $term = notags(trim($_GET['term']));
+ $item_id = (($a->argc > 1) ? notags(trim($a->argv[1])) : 0);
+
+ logger('filerm: tag ' . $term . ' item ' . $item_id);
+
+ if($item_id && strlen($term))
+ file_tag_unsave_file(local_user(),$item_id,$term);
+
+ if(x($_SESSION,'return_url'))
+ goaway($a->get_baseurl() . '/' . $_SESSION['return_url']);
+
+ killme();
+}
diff --git a/mod/item.php b/mod/item.php
index 81d7c753b..6f31f917f 100755
--- a/mod/item.php
+++ b/mod/item.php
@@ -627,7 +627,7 @@ function item_post(&$a) {
if($preview) {
require_once('include/conversation.php');
- $o = conversation(&$a,array(array_merge($contact_record,$datarray)),'search',false,true);
+ $o = conversation($a,array(array_merge($contact_record,$datarray)),'search',false,true);
logger('preview: ' . $o);
echo json_encode(array('preview' => $o));
killme();
diff --git a/mod/network.php b/mod/network.php
index 4f58fc4fb..e9f3913ff 100755
--- a/mod/network.php
+++ b/mod/network.php
@@ -192,7 +192,7 @@ function network_content(&$a, $update = 0) {
'sel'=>$starred_active,
),
array(
- 'label' => t('Bookmarks'),
+ 'label' => t('Shared Links'),
'url'=>$a->get_baseurl() . '/' . str_replace('/new', '', $a->cmd) . ((x($_GET,'cid')) ? '/?f=&cid=' . $_GET['cid'] : '') . '&bmark=1',
'sel'=>$bookmarked_active,
),
diff --git a/mod/settings.php b/mod/settings.php
index f42fdb397..15fd0c352 100755
--- a/mod/settings.php
+++ b/mod/settings.php
@@ -559,7 +559,7 @@ function settings_content(&$a) {
$tpl = get_markup_template("settings_addons.tpl");
$o .= replace_macros($tpl, array(
- '$form_security_token' => get_form_security_token("settings_addons"),
+ '$form_security_token' => get_form_security_token("settings_addon"),
'$title' => t('Plugin Settings'),
'$tabs' => $tabs,
'$settings_addons' => $settings_addons