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'