aboutsummaryrefslogtreecommitdiff
path: root/actions/simplepie/save_group_feed.php
blob: 830861612aae039c41ede8309a521ddebb0406af (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 (!elgg_instanceof($group, 'group') || !group->canEdit()) {
	forward(REFERER);
}
$group->feed_url = $feed_url;