aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-20 20:06:08 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-20 20:06:08 +0000
commitd9d5e669dc2f336cd110dd3761573165e46c6f0c (patch)
tree23fd37e30a8dda703b99b412f8474ed07ed2edad
parent566b755be286b794a07bc92655ec6791012b58ca (diff)
downloadelgg-d9d5e669dc2f336cd110dd3761573165e46c6f0c.tar.gz
elgg-d9d5e669dc2f336cd110dd3761573165e46c6f0c.tar.bz2
Refs #2629 This should fix this ticket. Need to remove initialise_attributes from any class updated with new method and add call to initializeAttributes in ElggData for those that are not updated.
git-svn-id: http://code.elgg.org/elgg/trunk@7389 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--engine/classes/ElggData.php1
-rw-r--r--engine/classes/ElggFile.php12
-rw-r--r--engine/classes/ElggPlugin.php12
-rw-r--r--engine/classes/ElggWidget.php13
4 files changed, 1 insertions, 37 deletions
diff --git a/engine/classes/ElggData.php b/engine/classes/ElggData.php
index 2853a5298..55d0da810 100644
--- a/engine/classes/ElggData.php
+++ b/engine/classes/ElggData.php
@@ -39,6 +39,7 @@ abstract class ElggData implements
protected function initialise_attributes($pre18_api = true) {
if ($pre18_api) {
elgg_deprecated_notice('initialise_attributes() is deprecated by initializeAttributes()', 1.8);
+ initializeAttributes();
} else {
return false;
}
diff --git a/engine/classes/ElggFile.php b/engine/classes/ElggFile.php
index a55bbc443..2a0d6fb28 100644
--- a/engine/classes/ElggFile.php
+++ b/engine/classes/ElggFile.php
@@ -31,18 +31,6 @@ class ElggFile extends ElggObject {
* Set subtype to 'file'.
*
* @return void
- *
- * @deprecated 1.8 Use initializeAttributes()
- */
- protected function initialise_attributes() {
- elgg_deprecated_notice('ElggFile::initialise_attributes() is deprecated by ::initializeAttributes()', 1.8);
- $this->initializeAttributes();
- }
-
- /**
- * Set subtype to 'file'.
- *
- * @return void
*/
protected function initializeAttributes() {
parent::initializeAttributes();
diff --git a/engine/classes/ElggPlugin.php b/engine/classes/ElggPlugin.php
index 7989acaf4..76276181b 100644
--- a/engine/classes/ElggPlugin.php
+++ b/engine/classes/ElggPlugin.php
@@ -14,18 +14,6 @@ class ElggPlugin extends ElggObject {
* Set subtype to 'plugin'
*
* @return void
- *
- * @deprecated 1.8 Use initializeAttributes()
- */
- protected function initialise_attributes() {
- elgg_deprecated_notice('ElggPlugin::initialise_attributes() is deprecated by ::initializeAttributes()', 1.8);
- return $this->initializeAttributes();
- }
-
- /**
- * Set subtype to 'plugin'
- *
- * @return void
*/
protected function initializeAttributes() {
parent::initializeAttributes();
diff --git a/engine/classes/ElggWidget.php b/engine/classes/ElggWidget.php
index 15e942aa3..b91fdfeb5 100644
--- a/engine/classes/ElggWidget.php
+++ b/engine/classes/ElggWidget.php
@@ -13,19 +13,6 @@ class ElggWidget extends ElggObject {
/**
* Set subtype to widget.
*
- * @deprecated 1.8 use ElggWidget::initializeAttributes()
- *
- * @return void
- */
- protected function initialise_attributes() {
- elgg_deprecated_notice('ElggWidget::initialise_attributes() is deprecated by ::initializeAttributes()', 1.8);
-
- return $this->initializeAttributes();
- }
-
- /**
- * Set subtype to widget.
- *
* @return void
*/
protected function initializeAttributes() {