diff --git a/phpgwapi/inc/phpgw_accounts_ldap.inc.php b/phpgwapi/inc/phpgw_accounts_ldap.inc.php
index 542ebec531..149f9689fe 100644
--- a/phpgwapi/inc/phpgw_accounts_ldap.inc.php
+++ b/phpgwapi/inc/phpgw_accounts_ldap.inc.php
@@ -302,18 +302,4 @@
return $accounts;
}
- function accounts_const($line,$file)
- {
- global $phpgw, $phpgw_info;
-
- //echo "accounts_const called
line: $line
$file";
-
- $phpgw->accounts->phpgw_fillarray();
- $phpgw->preferences->read_preferences();
- $this->groups = $this->read_groups($phpgw_info["user"]["userid"]);
- $this->apps = $this->read_apps($phpgw_info["user"]["userid"]);
-
- $phpgw_info["user"]["apps"] = $this->apps;
- }
-
}
diff --git a/phpgwapi/inc/phpgw_accounts_shared.inc.php b/phpgwapi/inc/phpgw_accounts_shared.inc.php
index 29d18e68c3..6b9bee2f7b 100644
--- a/phpgwapi/inc/phpgw_accounts_shared.inc.php
+++ b/phpgwapi/inc/phpgw_accounts_shared.inc.php
@@ -14,6 +14,20 @@
class accounts extends accounts_
{
+ function accounts_const($line,$file)
+ {
+ global $phpgw, $phpgw_info;
+
+ //echo "accounts_const called
line: $line
$file";
+
+ $phpgw->accounts->phpgw_fillarray();
+ $phpgw->preferences->read_preferences();
+ $this->groups = $this->read_groups($phpgw_info["user"]["userid"]);
+ $this->apps = $this->read_apps($phpgw_info["user"]["userid"]);
+
+ $phpgw_info["user"]["apps"] = $this->apps;
+ }
+
// use this if you make any changes to phpgw_info, including preferences, config table changes, etc
function sync($line="",$file="")
{
diff --git a/phpgwapi/inc/phpgw_accounts_sql.inc.php b/phpgwapi/inc/phpgw_accounts_sql.inc.php
index ff6d91ed41..d5eb9e28f0 100644
--- a/phpgwapi/inc/phpgw_accounts_sql.inc.php
+++ b/phpgwapi/inc/phpgw_accounts_sql.inc.php
@@ -210,19 +210,4 @@
return $accounts;
}
-
- function accounts_const($line,$file)
- {
- global $phpgw, $phpgw_info;
-
- //echo "accounts_const called
line: $line
$file";
-
- $phpgw->accounts->phpgw_fillarray();
- $phpgw->preferences->read_preferences();
- $this->groups = $this->read_groups($phpgw_info["user"]["userid"]);
- $this->apps = $this->read_apps($phpgw_info["user"]["userid"]);
-
- $phpgw_info["user"]["apps"] = $this->apps;
- }
-
}