Changeset View
Changeset View
Standalone View
Standalone View
plugins/libkolab/libkolab.php
Show First 20 Lines • Show All 373 Lines • ▼ Show 20 Lines | public function folder_search_form($attrib) | ||||
$attrib += array( | $attrib += array( | ||||
'gui-object' => false, | 'gui-object' => false, | ||||
'wrapper' => true, | 'wrapper' => true, | ||||
'form-name' => 'foldersearchform', | 'form-name' => 'foldersearchform', | ||||
'command' => 'non-extsing-command', | 'command' => 'non-extsing-command', | ||||
'reset-command' => 'non-existing-command', | 'reset-command' => 'non-existing-command', | ||||
); | ); | ||||
if ($attrib['label-domain'] && !strpos($attrib['buttontitle'], '.')) { | if (($attrib['label-domain'] ?? null) && !strpos($attrib['buttontitle'], '.')) { | ||||
$attrib['buttontitle'] = $attrib['label-domain'] . '.' . $attrib['buttontitle']; | $attrib['buttontitle'] = $attrib['label-domain'] . '.' . $attrib['buttontitle']; | ||||
} | } | ||||
if ($attrib['buttontitle']) { | if ($attrib['buttontitle']) { | ||||
$attrib['placeholder'] = $rcmail->gettext($attrib['buttontitle']); | $attrib['placeholder'] = $rcmail->gettext($attrib['buttontitle']); | ||||
} | } | ||||
return $rcmail->output->search_form($attrib); | return $rcmail->output->search_form($attrib); | ||||
} | } | ||||
} | } |