diff options
author | Sem <sembrestels@riseup.net> | 2014-01-22 04:02:17 +0100 |
---|---|---|
committer | Sem <sembrestels@riseup.net> | 2014-01-22 04:02:17 +0100 |
commit | c0295c275d6edbca6c6c8bb51dc199150d0d5fc3 (patch) | |
tree | 2c5a744a3859d27883f92b72aef9cf81f1a947d0 /mod/simplepie/actions | |
parent | 4a2ed114bb18c5363f594a380676c5654f4165a4 (diff) | |
parent | ae76fa880c7aeb7f7b0846dd4b109be8d398018c (diff) | |
download | elgg-c0295c275d6edbca6c6c8bb51dc199150d0d5fc3.tar.gz elgg-c0295c275d6edbca6c6c8bb51dc199150d0d5fc3.tar.bz2 |
Merge commit 'ae76fa880c7aeb7f7b0846dd4b109be8d398018c' into develop
Diffstat (limited to 'mod/simplepie/actions')
-rw-r--r-- | mod/simplepie/actions/simplepie/save_group_feed.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/mod/simplepie/actions/simplepie/save_group_feed.php b/mod/simplepie/actions/simplepie/save_group_feed.php new file mode 100644 index 000000000..8dc2ffd78 --- /dev/null +++ b/mod/simplepie/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 (!elgg_instanceof($group, 'group') || !$group->canEdit()) { + forward(REFERER); +} +$group->feed_url = $feed_url; |