From a8f616e81ba48583540d65102471644547e64af8 Mon Sep 17 00:00:00 2001 From: Greg Froese Date: Tue, 12 May 2009 02:50:55 +0000 Subject: used proper dbprefix --- mostviewedimages.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mostviewedimages.php') 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 -- cgit v1.2.3