diff options
author | capo <capo@riseup.net> | 2014-01-12 18:21:24 +0100 |
---|---|---|
committer | capo <capo@riseup.net> | 2014-01-12 18:21:24 +0100 |
commit | 74a2c0f73100209d1c10259a3f862d3645ab5dbb (patch) | |
tree | 66ecee1dbe7d9c5fdc45a5d1aeb4ca29e87d40ba /start.php | |
parent | e5dd9906d16d97aed7ba3511b7e1132bd4da3761 (diff) | |
download | elgg-74a2c0f73100209d1c10259a3f862d3645ab5dbb.tar.gz elgg-74a2c0f73100209d1c10259a3f862d3645ab5dbb.tar.bz2 |
review code from hellekin comments
Diffstat (limited to 'start.php')
-rw-r--r-- | start.php | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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);
+}
|