aboutsummaryrefslogtreecommitdiff
path: root/mod/file/views/default/widgets/filerepo/view.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/file/views/default/widgets/filerepo/view.php')
-rw-r--r--mod/file/views/default/widgets/filerepo/view.php5
1 files changed, 3 insertions, 2 deletions
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;