My favorites | Sign in
Project Home Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions

Issue 1 attachment: renames_Elgg1.8.diff (3.7 KB)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
Index: start.php
===================================================================
--- start.php (revision 2)
+++ start.php (working copy)
@@ -10,8 +10,8 @@

register_plugin_hook('expirationdate:expire_entity', 'all', 'elggx_userpoints_expire');

- extend_view('css', 'elggx_userpoints/css');
- extend_view('profile/icon','elggx_userpoints/icon');
+ elgg_extend_view('css', 'elggx_userpoints/css');
+ elgg_extend_view('profile/icon','elggx_userpoints/icon');

$toppoints_name = get_plugin_setting('toppoints_name') ? get_plugin_setting('toppoints_name') : 'Top Points';

@@ -245,7 +245,7 @@
* @return Bool
*/
function userpoints_exists($user_guid, $type, $guid) {
- $entities = get_entities_from_metadata('meta_type', '', 'object', 'userpoint', $owner_guid);
+ $entities = elgg_get_entities_from_metadata('meta_type', '', 'object', 'userpoint', $owner_guid);
foreach($entities as $obj) {
if ($obj->meta_type == $type && $obj->meta_guid == $guid) {
return(true);
@@ -264,7 +264,7 @@

$points = array('approved' => 0, 'pending' => 0);

- if ($entities = get_entities_from_metadata('meta_points', '', 'object', 'userpoint', $user_guid, 100000)) {
+ if ($entities = elgg_get_entities_from_metadata('meta_points', '', 'object', 'userpoint', $user_guid, 100000)) {
foreach($entities as $obj) {
if (isset($obj->meta_moderate)) {
if ($obj->meta_moderate == 'approved') {
@@ -296,7 +296,7 @@

$points = 0;

- $entities = get_entities_from_metadata('meta_guid', $guid, 'object', 'userpoint', $user_guid);
+ $entities = elgg_get_entities_from_metadata('meta_guid', $guid, 'object', 'userpoint', $user_guid);
foreach ($entities as $entity) {
$points = $points + $entity->meta_points;
delete_entity($entity->guid);
Index: views/default/elggx_userpoints/moderate.php
===================================================================
--- views/default/elggx_userpoints/moderate.php (revision 2)
+++ views/default/elggx_userpoints/moderate.php (working copy)
@@ -5,8 +5,8 @@
$token = generate_action_token ( $ts );


- $count = get_entities_from_metadata('meta_moderate', 'pending', 'object', 'userpoint', 0, 0, 0, '', 0, true);
- $entities = get_entities_from_metadata('meta_moderate', 'pending', 'object', 'userpoint', 0, 10, $offset);
+ $count = elgg_get_entities_from_metadata('meta_moderate', 'pending', 'object', 'userpoint', 0, 0, 0, '', 0, true);
+ $entities = elgg_get_entities_from_metadata('meta_moderate', 'pending', 'object', 'userpoint', 0, 10, $offset);

$nav = elgg_view('navigation/pagination',array(
'baseurl' => $_SERVER['REQUEST_URI'],
Index: views/default/elggx_userpoints/detail.php
===================================================================
--- views/default/elggx_userpoints/detail.php (revision 2)
+++ views/default/elggx_userpoints/detail.php (working copy)
@@ -6,8 +6,8 @@
$ts = time ();
$token = generate_action_token ( $ts );

- $count = get_entities_from_metadata('meta_moderate', 'approved', 'object', 'userpoint', $user_guid, 0, 0, '', 0, true);
- $entities = get_entities_from_metadata('meta_moderate', 'approved', 'object', 'userpoint', $user_guid, 10, $offset);
+ $count = elgg_get_entities_from_metadata('meta_moderate', 'approved', 'object', 'userpoint', $user_guid, 0, 0, '', 0, true);
+ $entities = elgg_get_entities_from_metadata('meta_moderate', 'approved', 'object', 'userpoint', $user_guid, 10, $offset);

$nav = elgg_view('navigation/pagination',array(
'baseurl' => $_SERVER['REQUEST_URI'],
Powered by Google Project Hosting