From: Joe Hunt Date: Wed, 12 Sep 2012 12:06:35 +0000 (+0200) Subject: 0001775: Hard coded theme path fixed X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=6cb263b7882ae0508e066255bba342a45e2470a1;p=textcart.git 0001775: Hard coded theme path fixed --- diff --git a/includes/ui/ui_input.inc b/includes/ui/ui_input.inc index 0ffa024..7929d07 100644 --- a/includes/ui/ui_input.inc +++ b/includes/ui/ui_input.inc @@ -624,8 +624,12 @@ function date_cells($label, $name, $title = null, $check=null, $inc_days=0, } } if ($use_date_picker) + { + $calc_image = (file_exists("$path_to_root/themes/".user_theme()."/images/cal.gif")) ? + "$path_to_root/themes/".user_theme()."/images/cal.gif" : "$path_to_root/themes/default/images/cal.gif"; $post_label = "" - . " "._(\n"; + . " "._(\n"; + } else $post_label = ""; diff --git a/reporting/includes/reports_classes.inc b/reporting/includes/reports_classes.inc index 92e5a9e..a789132 100644 --- a/reporting/includes/reports_classes.inc +++ b/reporting/includes/reports_classes.inc @@ -212,8 +212,12 @@ class BoxReports $date = $_POST[$name]; $st = ""; if ($use_date_picker) + { + $calc_image = (file_exists("$path_to_root/themes/".user_theme()."/images/cal.gif")) ? + "$path_to_root/themes/".user_theme()."/images/cal.gif" : "$path_to_root/themes/default/images/cal.gif"; $st .= "" - . " "._(\n"; + . " "._(\n"; + } return $st; break;