aboutsummaryrefslogtreecommitdiff
path: root/pages/world.php
diff options
context:
space:
mode:
Diffstat (limited to 'pages/world.php')
-rw-r--r--pages/world.php23
1 files changed, 8 insertions, 15 deletions
diff --git a/pages/world.php b/pages/world.php
index 1ed712ac9..d88ab1969 100644
--- a/pages/world.php
+++ b/pages/world.php
@@ -6,28 +6,21 @@
include_once dirname(dirname(dirname(dirname(__FILE__)))) . "/engine/start.php";
- $limit = get_input("limit", 10);
- $offset = get_input("offset", 0);
- $tag = get_input("tag");
+ $num_albums = 16;
- // Get the current page's owner
- $page_owner = page_owner_entity();
- if ($page_owner === false || is_null($page_owner)) {
- $page_owner = $_SESSION['user'];
- set_page_owner($_SESSION['guid']);
- }
+ $title = elgg_echo('album:all');
- // Get objects
- $area2 = elgg_view_title($title = elgg_echo('album:all'));
+ set_context('photos');
+ $area2 = elgg_view_title($title);
set_context('search');
set_input('search_viewtype', 'gallery');
- $area2 .= list_entities('object','album', 0, 28);
+ $albums_html .= list_entities('object','album', 0, $num_albums);
- set_context('photos');
+
+ $area2 .= $albums_html;
$body = elgg_view_layout('two_column_left_sidebar', '', $area2);
- // Finally draw the page
- page_draw(sprintf(elgg_echo("album:all"),$_SESSION['user']->name), $body);
+ page_draw($title, $body);
?> \ No newline at end of file