aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mod/bookmarks/all.php3
-rw-r--r--mod/bookmarks/languages/en.php3
-rwxr-xr-xmod/bookmarks/views/default/bookmarks/stats.php7
3 files changed, 6 insertions, 7 deletions
diff --git a/mod/bookmarks/all.php b/mod/bookmarks/all.php
index 88258c855..a4bdae7af 100644
--- a/mod/bookmarks/all.php
+++ b/mod/bookmarks/all.php
@@ -28,7 +28,8 @@ if(isloggedin()){
$area3 .= elgg_view("bookmarks/bookmarklet");
}
// include statistics
-$area3 .= elgg_view("bookmarks/stats");
+$count = elgg_get_entities(array('type' => 'object', 'subtype' => 'bookmarks', 'count' => true));
+$area3 .= elgg_view("bookmarks/stats", array('count' => $count));
// Format page
$body = elgg_view_layout('one_column_with_sidebar', $area1.$area2, $area3);
diff --git a/mod/bookmarks/languages/en.php b/mod/bookmarks/languages/en.php
index 2ba00a8dd..1af2e613f 100644
--- a/mod/bookmarks/languages/en.php
+++ b/mod/bookmarks/languages/en.php
@@ -34,7 +34,8 @@ $english = array(
'bookmarks:shared' => "Bookmarked",
'bookmarks:visit' => "Visit resource",
'bookmarks:recent' => "Recent bookmarks",
-
+ 'bookmarks:stats' => "Bookmark stats",
+ 'bookmarks:resources' => "resources bookmarked",
'bookmarks:river:created' => '%s bookmarked',
'bookmarks:river:annotate' => 'posted a comment on this bookmarked item',
'bookmarks:river:item' => 'an item',
diff --git a/mod/bookmarks/views/default/bookmarks/stats.php b/mod/bookmarks/views/default/bookmarks/stats.php
index a9cad12b3..77c3d703f 100755
--- a/mod/bookmarks/views/default/bookmarks/stats.php
+++ b/mod/bookmarks/views/default/bookmarks/stats.php
@@ -3,8 +3,5 @@
* All site bookmark stats
**/
-$count_bookmarks = elgg_get_entities("object", "bookmarks",0,"",10,0,true,0,null,0,0);
-$count_bookmark_comments = count_annotations(0, "object", "bookmarks","generic_comment");
-
-echo "<h3>Bookmark stats</h3>";
-echo "<p>".$count_bookmarks . " resources bookmarked.</p>";
+echo "<h3>".elgg_echo('bookmarks:stats')."</h3>";
+echo "<p>". $vars['count'] . " " . elgg_echo('bookmarks:resources') .".</p>"; \ No newline at end of file