aboutsummaryrefslogtreecommitdiff
path: root/actions/simplepie/save_group_feed.php
blob: 556372f98529d51fd37d4f352c550db6cba8cec8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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;