aboutsummaryrefslogtreecommitdiff
path: root/mostviewedimages.php
diff options
context:
space:
mode:
Diffstat (limited to 'mostviewedimages.php')
-rw-r--r--mostviewedimages.php3
1 files changed, 2 insertions, 1 deletions
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