aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--friendmostrecent.php3
-rw-r--r--friendmostviewed.php3
-rw-r--r--mostrecentimages.php1
-rw-r--r--mostviewedimages.php3
-rw-r--r--yourmostrecent.php3
-rw-r--r--yourmostviewed.php3
6 files changed, 11 insertions, 5 deletions
diff --git a/friendmostrecent.php b/friendmostrecent.php
index 9c6eb8ed0..10d99251a 100644
--- a/friendmostrecent.php
+++ b/friendmostrecent.php
@@ -19,7 +19,8 @@
}
$user = get_user_by_username($friendname);
- $prefix = "my_elgg"; //how do you get the global default?
+ global $CONFIG;
+ $prefix = $CONFIG->dbprefix;
$max = 24;
//grab the top views (metadata 'tp_views') for $max number of entities
//ignores entity subtypes
diff --git a/friendmostviewed.php b/friendmostviewed.php
index 300c3ccb5..901a8ff08 100644
--- a/friendmostviewed.php
+++ b/friendmostviewed.php
@@ -28,7 +28,8 @@
}
$user = get_user_by_username($friendname);
- $prefix = "my_elgg"; //how do you get the global default?
+ global $CONFIG;
+ $prefix = $CONFIG->dbprefix;
$max = 24;
//grab the top views (metadata 'tp_views') for $max number of entities
//ignores entity subtypes
diff --git a/mostrecentimages.php b/mostrecentimages.php
index 8cc4a1f51..53d8ef236 100644
--- a/mostrecentimages.php
+++ b/mostrecentimages.php
@@ -17,4 +17,5 @@
$area2 .= $images;
$body = elgg_view_layout('two_column_left_sidebar', '', $area2);
page_draw($title, $body);
+
?> \ No newline at end of file
diff --git a/mostviewedimages.php b/mostviewedimages.php
index 0de7c626f..caf755193 100644
--- a/mostviewedimages.php
+++ b/mostviewedimages.php
@@ -9,7 +9,8 @@
// Load Elgg engine
include_once(dirname(dirname(dirname(__FILE__))) . "/engine/start.php");
- $prefix = "my_elgg"; //how do you get the global default?
+ global $CONFIG;
+ $prefix = $CONFIG->dbprefix;
$max = 24;
//grab the top views (metadata 'tp_views') for $max number of entities
//ignores entity subtypes
diff --git a/yourmostrecent.php b/yourmostrecent.php
index 68c83cd7e..69b4b93e9 100644
--- a/yourmostrecent.php
+++ b/yourmostrecent.php
@@ -6,8 +6,9 @@
include_once(dirname(dirname(dirname(__FILE__))) . "/engine/start.php");
+ global $CONFIG;
$viewer = get_loggedin_user();
- $prefix = "my_elgg"; //how do you get the global default?
+ $prefix = $CONFIG->dbprefix;
$max = 24;
//grab the top views (metadata 'tp_views') for $max number of entities
//ignores entity subtypes
diff --git a/yourmostviewed.php b/yourmostviewed.php
index 193464c04..40d05c038 100644
--- a/yourmostviewed.php
+++ b/yourmostviewed.php
@@ -10,7 +10,8 @@
include_once(dirname(dirname(dirname(__FILE__))) . "/engine/start.php");
$viewer = get_loggedin_user();
- $prefix = "my_elgg"; //how do you get the global default?
+ global $CONFIG;
+ $prefix = $CONFIG->dbprefix;
$max = 24;
//grab the top views (metadata 'tp_views') for $max number of entities
//ignores entity subtypes