Fix for preprocessor weirdness in php3, constant must defined prior to a function

definition that will use it (in parsing order)
This commit is contained in:
Miles Lott 2001-09-03 04:45:28 +00:00
parent 2460cbbf09
commit 9b8169d0e2

View File

@ -30,18 +30,6 @@
}
// Make things a little easier to follow
function is_admin()
{
if (HAS_ADMIN_RIGHTS == 1)
{
return True;
}
else
{
return False;
}
}
// Some places we will need to change this if there in common
function check_app($appname)
{
@ -190,6 +178,18 @@
$dp->read_repository();
}
function is_admin()
{
if (HAS_ADMIN_RIGHTS == 1)
{
return True;
}
else
{
return False;
}
}
$t = CreateObject('phpgwapi.Template',$GLOBALS['phpgw']->common->get_tpl_dir('preferences'));
$t->set_file(array(
'_preferences' => 'preferences.tpl'