Changeset 5662 in subversion for trunk/roundcubemail/program/steps/addressbook/func.inc
- Timestamp:
- Dec 29, 2011 4:35:01 AM (17 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/program/steps/addressbook/func.inc
r5645 r5662 57 57 ); 58 58 59 $PAGE_SIZE = $RCMAIL->config->get('addressbook_pagesize'); 60 if (!$PAGE_SIZE) { 61 $PAGE_SIZE = $RCMAIL->config->get('pagesize', 50); 62 } 59 63 60 64 // Addressbook UI … … 109 113 function rcmail_contact_source($source=null, $init_env=false, $writable=false) 110 114 { 111 global $RCMAIL, $OUTPUT, $CON FIG, $CONTACT_COLTYPES;115 global $RCMAIL, $OUTPUT, $CONTACT_COLTYPES, $PAGE_SIZE; 112 116 113 117 if (!strlen($source)) { … … 117 121 // Get object 118 122 $CONTACTS = $RCMAIL->get_address_book($source, $writable); 119 $CONTACTS->set_pagesize($ CONFIG['pagesize']);123 $CONTACTS->set_pagesize($PAGE_SIZE); 120 124 121 125 // set list properties and session vars … … 392 396 function rcmail_get_rowcount_text($result=null) 393 397 { 394 global $CONTACTS, $ CONFIG;398 global $CONTACTS, $PAGE_SIZE; 395 399 396 400 // read nr of contacts … … 406 410 'vars' => array( 407 411 'from' => $result->first + 1, 408 'to' => min($result->count, $result->first + $ CONFIG['pagesize']),412 'to' => min($result->count, $result->first + $PAGE_SIZE), 409 413 'count' => $result->count) 410 414 ));
Note: See TracChangeset
for help on using the changeset viewer.
