summaryrefslogtreecommitdiff
path: root/roundcubemail/installer
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-12-29 09:35:01 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-12-29 09:35:01 +0000
commitfae8674359063881ab6d2a62eba6bf815de290db (patch)
treed252ab8881123334ddecac999f3f354642bd9780 /roundcubemail/installer
parent8f96f6d95ef85779395a46e558d6d412e4407ff7 (diff)
- Add separate pagesize setting for mail messages and contacts (#1488269)
git-svn-id: https://svn.roundcube.net/trunk@5662 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/installer')
-rw-r--r--roundcubemail/installer/config.php27
-rw-r--r--roundcubemail/installer/rcube_install.php7
2 files changed, 27 insertions, 7 deletions
diff --git a/roundcubemail/installer/config.php b/roundcubemail/installer/config.php
index dabc478c9..b71e3d5d5 100644
--- a/roundcubemail/installer/config.php
+++ b/roundcubemail/installer/config.php
@@ -524,15 +524,34 @@ echo $input_skin->show($RCI->getprop('skin_logo'));
<p class="hint">Enter a URL relative to the document root of this Roundcube installation.</p>
</dd>
-<dt class="propname">pagesize <span class="userconf">*</span></dt>
+<dt class="propname">mail_pagesize <span class="userconf">*</span></dt>
<dd>
<?php
-$input_pagesize = new html_inputfield(array('name' => '_pagesize', 'size' => 6, 'id' => "cfgpagesize"));
-echo $input_pagesize->show($RCI->getprop('pagesize'));
+$pagesize = $RCI->getprop('mail_pagesize');
+if (!$pagesize) {
+ $pagesize = $RCI->getprop('pagesize');
+}
+$input_pagesize = new html_inputfield(array('name' => '_mail_pagesize', 'size' => 6, 'id' => "cfgmailpagesize"));
+echo $input_pagesize->show($pagesize);
+
+?>
+<div>Show up to X items in the mail messages list view.</div>
+</dd>
+
+<dt class="propname">addressbook_pagesize <span class="userconf">*</span></dt>
+<dd>
+<?php
+
+$pagesize = $RCI->getprop('addressbook_pagesize');
+if (!$pagesize) {
+ $pagesize = $RCI->getprop('pagesize');
+}
+$input_pagesize = new html_inputfield(array('name' => '_addressbook_pagesize', 'size' => 6, 'id' => "cfgabookpagesize"));
+echo $input_pagesize->show($pagesize);
?>
-<div>Show up to X items in list view.</div>
+<div>Show up to X items in the contacts list view.</div>
</dd>
<dt class="propname">prefer_html <span class="userconf">*</span></dt>
diff --git a/roundcubemail/installer/rcube_install.php b/roundcubemail/installer/rcube_install.php
index 737972b93..a3618a515 100644
--- a/roundcubemail/installer/rcube_install.php
+++ b/roundcubemail/installer/rcube_install.php
@@ -40,14 +40,15 @@ class rcube_install
'multiple_identities' => 'identities_level',
'addrbook_show_images' => 'show_images',
'imap_root' => 'imap_ns_personal',
+ 'pagesize' => 'mail_pagesize',
);
-
+
// these config options are required for a working system
var $required_config = array(
'db_dsnw', 'db_table_contactgroups', 'db_table_contactgroupmembers',
'des_key', 'session_lifetime',
);
-
+
/**
* Constructor
*/
@@ -169,7 +170,7 @@ class rcube_install
if (count($value) <= 1)
$value = $value[0];
}
- else if ($prop == 'pagesize') {
+ else if ($prop == 'mail_pagesize' || $prop == 'addressbook_pagesize') {
$value = max(2, intval($value));
}
else if ($prop == 'smtp_user' && !empty($_POST['_smtp_user_u'])) {