From 36ef345eb6425106f061fb866d9fa66d051e16df Mon Sep 17 00:00:00 2001 From: brettp Date: Mon, 5 Apr 2010 16:08:42 +0000 Subject: Merged 5530:5604 from 1.7 to trunk. git-svn-id: http://code.elgg.org/elgg/trunk@5622 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/file/views/default/widgets/filerepo/edit.php | 35 ++++++++++++++---------- mod/file/views/default/widgets/filerepo/view.php | 5 ++-- 2 files changed, 23 insertions(+), 17 deletions(-) (limited to 'mod/file/views/default') diff --git a/mod/file/views/default/widgets/filerepo/edit.php b/mod/file/views/default/widgets/filerepo/edit.php index 35d633058..0d1901662 100644 --- a/mod/file/views/default/widgets/filerepo/edit.php +++ b/mod/file/views/default/widgets/filerepo/edit.php @@ -1,19 +1,24 @@ +num_display)) { + $vars['entity']->num_display = 4; +} +?>

- : - + : +

diff --git a/mod/file/views/default/widgets/filerepo/view.php b/mod/file/views/default/widgets/filerepo/view.php index 01fdefa48..276ece053 100644 --- a/mod/file/views/default/widgets/filerepo/view.php +++ b/mod/file/views/default/widgets/filerepo/view.php @@ -17,8 +17,9 @@ $('a.show_file_desc').click(function () { //the number of files to display $number = (int) $vars['entity']->num_display; - if (!$number) - $number = 1; + if (!$number) { + $number = 4; + } //get the layout view which is set by the user in the edit panel $get_view = (int) $vars['entity']->gallery_list; -- cgit v1.2.3