From 74a2c0f73100209d1c10259a3f862d3645ab5dbb Mon Sep 17 00:00:00 2001 From: capo Date: Sun, 12 Jan 2014 18:21:24 +0100 Subject: review code from hellekin comments --- start.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'start.php') diff --git a/start.php b/start.php index 26c2e5017..34a7ced3f 100644 --- a/start.php +++ b/start.php @@ -25,6 +25,9 @@ function simplepie_init() { add_group_tool_option('rss', elgg_echo('simplepie:enablerss'), false); elgg_extend_view('groups/tool_latest', 'simplepie/group_module'); - elgg_register_action('simplepie/group_module', elgg_get_plugins_path() . 'simplepie/actions/simplepie/group_module.php'); + elgg_register_action('simplepie/save_group_feed', elgg_get_plugins_path() . 'simplepie/actions/simplepie/save_group_feed.php'); } +function simplepie_is_url($url) { + return preg_match("/\b(?:(?:https?|ftp):\/\/|www\.)[-a-z0-9+&@#\/%?=~_|!:,.;]*[-a-z0-9+&@#\/%=~_|]/i", $url); +} -- cgit v1.2.3