From 9b8169d0e2f92252de3d0f27f2f358370e810a42 Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Mon, 3 Sep 2001 04:45:28 +0000 Subject: [PATCH] Fix for preprocessor weirdness in php3, constant must defined prior to a function definition that will use it (in parsing order) --- preferences/preferences.php | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/preferences/preferences.php b/preferences/preferences.php index 33574cbf57..c5444f3740 100755 --- a/preferences/preferences.php +++ b/preferences/preferences.php @@ -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'