mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
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:
parent
2460cbbf09
commit
9b8169d0e2
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user