mirror of https://github.com/BOINC/boinc.git
Code cleanup
Removed unused reference to BOINC user.inc, as CPID is in the Drupal user object (DBOINCP-84)
This commit is contained in:
parent
9c32cc1f45
commit
3b20262a16
|
@ -1086,9 +1086,6 @@ function boincuser_get_projects($account = null) {
|
|||
$account = user_load($user->uid);
|
||||
}
|
||||
|
||||
// Tie into the BOINC code and use CPID to get cross project stats
|
||||
require_boinc('user');
|
||||
$boinc_user = BoincUser::lookup_id($account->boincuser_id);
|
||||
$account_stats = boincuser_get_stats_user_data($account->boincuser_cpid);
|
||||
|
||||
return ($account_stats AND isset($account_stats->project)) ? $account_stats->project : null;
|
||||
|
|
Loading…
Reference in New Issue