Odd php3 fix for undefined constant, please test on php4

This commit is contained in:
Miles Lott 2001-09-05 03:06:14 +00:00
parent 5a5d1c0a09
commit 3c92e4fb10

View File

@ -397,7 +397,16 @@
function create_tabs($tabs, $selected, $fontsize = '')
{
$output_text = '<table border="0" cellspacing="0" cellpadding="0"><tr>';
$ir = PHPGW_IMAGES_DIR;
/* This is a php3 workaround */
if(PHPGW_IMAGES_DIR == 'PHPGW_IMAGES_DIR')
{
$ir = ExecMethod('phpgwapi.phpgw.common.get_image_path', 'phpgwapi');
}
else
{
$ir = PHPGW_IMAGES_DIR;
}
if ($fontsize)
{