@@ 128-137 (lines=10) @@ | ||
125 | { |
|
126 | $communities = json_decode(elgg_get_plugin_setting('communities', 'gc_communities'), true); |
|
127 | ||
128 | foreach ($communities as $community) { |
|
129 | if ($community['community_url'] == $url) { |
|
130 | $community_en = $community['community_en']; |
|
131 | $community_fr = $community['community_fr']; |
|
132 | $community_tags = $community['community_tags']; |
|
133 | $community_animator = $community['community_animator']; |
|
134 | $community_audience = $community['community_audience']; |
|
135 | break; |
|
136 | } |
|
137 | } |
|
138 | ||
139 | set_input('community_url', $url); |
|
140 | set_input('community_en', $community_en); |
@@ 16-25 (lines=10) @@ | ||
13 | $latest = get_input('latest'); |
|
14 | ||
15 | $url = get_input('url'); |
|
16 | foreach ($communities as $community) { |
|
17 | if ($community['community_url'] == $url) { |
|
18 | $community_en = $community['community_en']; |
|
19 | $community_fr = $community['community_fr']; |
|
20 | $community_tags = $community['community_tags']; |
|
21 | $community_audience = $community['community_audience']; |
|
22 | $community_animator = $community['community_animator']; |
|
23 | break; |
|
24 | } |
|
25 | } |
|
26 | ||
27 | if ($limit) { |
|
28 | $newsfeed_limit = $limit; |