aboutsummaryrefslogtreecommitdiff
path: root/mod/file/search.php
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-30 22:53:36 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-30 22:53:36 +0000
commitd325c3c77f7931ceba6babd8741febf4f33151f0 (patch)
tree01ea2918e29be7734672e985909775fb5ba7d4a9 /mod/file/search.php
parent22d64456008cd8d2aaab35f6d8005cc112d93567 (diff)
downloadelgg-d325c3c77f7931ceba6babd8741febf4f33151f0.tar.gz
elgg-d325c3c77f7931ceba6babd8741febf4f33151f0.tar.bz2
added gallery css for the file plugin
git-svn-id: http://code.elgg.org/elgg/trunk@7782 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/file/search.php')
-rw-r--r--mod/file/search.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/mod/file/search.php b/mod/file/search.php
index fa6c5ea71..ba6808176 100644
--- a/mod/file/search.php
+++ b/mod/file/search.php
@@ -73,7 +73,12 @@
$offset = (int)get_input('offset', 0);
$limit = 10;
- if ($listtype == "gallery") $limit = 12;
+
+ if ($listtype == "gallery") {
+ $limit = 12;
+ elgg_push_context('gallery');
+ }
+
if (!empty($tag)) {
$params = array(
'metadata_name' => $md_type,
@@ -88,6 +93,10 @@
$area2 .= elgg_list_entities(array('types' => 'object', 'subtypes' => 'file', 'owner_guid' => $owner_guid, 'limit' => $limit, 'offset' => $offset));
}
+ if ($listtype == "gallery") {
+ elgg_pop_context();
+ }
+
elgg_pop_context();
$content = "<div class='files'>".$area1.$area2."</div>";