aboutsummaryrefslogtreecommitdiff
path: root/mostviewedimages.php
diff options
context:
space:
mode:
authorGreg Froese <greg.froese@gmail.com>2009-05-12 02:50:55 +0000
committerGreg Froese <greg.froese@gmail.com>2009-05-12 02:50:55 +0000
commita8f616e81ba48583540d65102471644547e64af8 (patch)
tree4e4a70bb953927c3a625f50bccfeae09e4255e2b /mostviewedimages.php
parenta5311a04c7a1b4deb6904a3f781c43bcbceca782 (diff)
downloadelgg-a8f616e81ba48583540d65102471644547e64af8.tar.gz
elgg-a8f616e81ba48583540d65102471644547e64af8.tar.bz2
used proper dbprefix
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