aboutsummaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
authorcapo <capo@riseup.net>2014-01-12 18:55:35 +0100
committercapo <capo@riseup.net>2014-01-12 18:55:35 +0100
commite79633358a5165bb68f6d0e1b8fe855d84cea8cc (patch)
treeaf3c05426eaec1c6aecd983db7e4bc5b5a5a8a16 /actions
parent74a2c0f73100209d1c10259a3f862d3645ab5dbb (diff)
downloadelgg-e79633358a5165bb68f6d0e1b8fe855d84cea8cc.tar.gz
elgg-e79633358a5165bb68f6d0e1b8fe855d84cea8cc.tar.bz2
fix identation
Diffstat (limited to 'actions')
-rw-r--r--actions/simplepie/save_group_feed.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/actions/simplepie/save_group_feed.php b/actions/simplepie/save_group_feed.php
new file mode 100644
index 000000000..556372f98
--- /dev/null
+++ b/actions/simplepie/save_group_feed.php
@@ -0,0 +1,14 @@
+<?php
+
+$group = get_entity((int)get_input('group_guid'));
+$feed_url = get_input('feed_url');
+
+if (!simplepie_is_url($feed_url)) {
+ register_error (elgg_echo("simplepie:invalid_url"));
+ forward(REFERER);
+}
+
+if (!$group || !$group->canEdit() || !elgg_instanceof($group, 'group')) {
+ forward(REFERER);
+}
+$group->feed_url = $feed_url;