Changeset faaa1ba in github
- Timestamp:
- Dec 22, 2011 12:42:21 PM (17 months ago)
- Branches:
- master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.8
- Children:
- 68e13c4
- Parents:
- aa3a9a4
- File:
-
- 1 edited
-
program/steps/addressbook/func.inc (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
program/steps/addressbook/func.inc
r6a61686 rfaaa1ba 383 383 $OUTPUT->add_gui_object('countdisplay', $attrib['id']); 384 384 385 if ($attrib['label']) 386 $_SESSION['contactcountdisplay'] = $attrib['label']; 387 385 388 return html::span($attrib, rcube_label('loading')); 386 389 } … … 400 403 else 401 404 $out = rcube_label(array( 402 'name' => 'contactsfromto',405 'name' => $_SESSION['contactcountdisplay'] ? $_SESSION['contactcountdisplay'] : 'contactsfromto', 403 406 'vars' => array( 404 407 'from' => $result->first + 1, … … 701 704 global $SOURCE_ID, $CONTACTS, $CONTACT_COLTYPES, $RCMAIL, $CONFIG; 702 705 703 if (!$CONTACT_COLTYPES['photo'])704 return '';705 706 706 if ($result = $CONTACTS->get_result()) 707 707 $record = $result->first(); … … 721 721 $content = html::div($attrib, $img); 722 722 723 if ($ RCMAIL->action == 'edit' || $RCMAIL->action == 'add') {723 if ($CONTACT_COLTYPES['photo'] && ($RCMAIL->action == 'edit' || $RCMAIL->action == 'add')) { 724 724 $RCMAIL->output->add_gui_object('contactphoto', $attrib['id']); 725 725 $hidden = new html_hiddenfield(array('name' => '_photo', 'id' => 'ff_photo', 'value' => $ff_value));
Note: See TracChangeset
for help on using the changeset viewer.
