diff options
Diffstat (limited to 'engine/classes/ElggUser.php')
-rw-r--r-- | engine/classes/ElggUser.php | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/engine/classes/ElggUser.php b/engine/classes/ElggUser.php index ab1bd71a0..071806529 100644 --- a/engine/classes/ElggUser.php +++ b/engine/classes/ElggUser.php @@ -9,23 +9,8 @@ */ class ElggUser extends ElggEntity implements Friendable { - /** - * Initialise the attributes array. - * This is vital to distinguish between metadata and base parameters. - * - * Place your base parameters here. - * - * @deprecated 1.8 Use ElggUser::initializeAttributes() - * - * @return void - */ - protected function initialise_attributes() { - elgg_deprecated_notice('ElggUser::initialise_attributes() is deprecated by ::initializeAttributes()', 1.8); - - return $this->initializeAttributes(); - } - /** + /** * Initialise the attributes array. * This is vital to distinguish between metadata and base parameters. * @@ -60,6 +45,9 @@ class ElggUser extends ElggEntity function __construct($guid = null) { $this->initializeAttributes(); + // compatibility for 1.7 api. + $this->initialise_attributes(false); + if (!empty($guid)) { // Is $guid is a DB row - either a entity row, or a user table row. if ($guid instanceof stdClass) { |