Hi apmuthu,
I wrapped up lines 507-515 from ui_input.inc as you suggested, which resulted in a shift of the error code from line 507 to 508. Then I unwrapped these code lines again and wrapped up lines 28-47 in dashboard_ui.inc.
if (!function_exists('text_input')) {
function text_input($label, $name, $value=null, $size="", $max="", $title=false,
$labparams="", $post_label="", $inparams="")
{
global $Ajax;
default_focus($name);
if ($label != null)
label_cell($label, $labparams);
if ($value === null)
$value = get_post($name);
echo "<input $inparams type=\"text\" name=\"$name\" size=\"$size\" maxlength=\"$max\" value=\"$value\""
.($title ? " title='$title'" : '')
.">";
if ($post_label != "")
echo " " . $post_label;
$Ajax->addUpdate($name, $name, $value);
}
}
This resulted in an errorless Dashboard setup screen and a non functioning Reminder setup screen with error code "Undefined variable: use_date_picker in file: /X/X/X/X/public_html/fa/modules/dashboard/reminder_setup.php at line 20". So function text_input() seems to be executed in dashboard_ui.inc later... Do you agree, can I leave it this way?
After I exchanged line 20 of reminder_setup.php
if ($use_date_picker)
$js .= get_js_date_picker();
with
if (user_use_date_picker ()){
$js .= get_js_date_picker();
}
everthing seems to work fine. Is this the way to go or should the variable "$use_date_picker" be used somehow. Please advice on both edits.
Regards,
Peter