aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/entities.php
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-02-01 00:53:06 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-02-01 00:53:06 +0000
commitced1f7e98a99b4bd702a362ddd1968ff1e2ae5f0 (patch)
tree64b4cba6c6ced5e7f7f8b28164134e7c45e4bfb4 /engine/lib/entities.php
parentbecacf9b043c2526e910d84fe41b96e800aca602 (diff)
downloadelgg-ced1f7e98a99b4bd702a362ddd1968ff1e2ae5f0.tar.gz
elgg-ced1f7e98a99b4bd702a362ddd1968ff1e2ae5f0.tar.bz2
Add elgg_deprecated_notice() so we don't have to re-write all the elgg_log() deprecated notices to register_error()s. Updated current ones to use this.
git-svn-id: http://code.elgg.org/elgg/trunk@3874 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/entities.php')
-rw-r--r--engine/lib/entities.php9
1 files changed, 4 insertions, 5 deletions
diff --git a/engine/lib/entities.php b/engine/lib/entities.php
index 2519400d6..485a45cf1 100644
--- a/engine/lib/entities.php
+++ b/engine/lib/entities.php
@@ -1841,8 +1841,7 @@ function elgg_get_entities(array $options = array()) {
*/
function get_entities($type = "", $subtype = "", $owner_guid = 0, $order_by = "", $limit = 10, $offset = 0,
$count = false, $site_guid = 0, $container_guid = null, $timelower = 0, $timeupper = 0) {
-
- elgg_log('get_entities() was deprecated in 1.7 by elgg_get_entities()!', 'WARNING');
+ elgg_deprecated_notice('get_entities() was deprecated by elgg_get_entities().', 1.7);
// rewrite owner_guid to container_guid to emulate old functionality
$container_guid = $owner_guid;
$owner_guid = NULL;
@@ -2215,7 +2214,7 @@ function elgg_list_entities($options) {
* @return unknown_type
*/
function list_entities($type= "", $subtype = "", $owner_guid = 0, $limit = 10, $fullview = true, $viewtypetoggle = false, $pagination = true) {
- elgg_log('list_entities() was deprecated in 1.7. Use elgg_list_entities()!', 'WARNING');
+ elgg_deprecated_notice('list_entities() was deprecated by elgg_list_entities()!', 1.7);
$options = array();
@@ -2529,7 +2528,7 @@ function delete_entity($guid, $recursive = true) {
* @param int $owner_guid The GUID of the owning user
*/
function delete_entities($type = "", $subtype = "", $owner_guid = 0) {
- elgg_log('delete_entities() was deprecated in 1.7 because no one should use it.');
+ elgg_deprecated_notice('delete_entities() was deprecated because no one should use it.', 1.7);
return false;
}
@@ -3051,7 +3050,7 @@ function entities_page_handler($page) {
* @return unknown_type
*/
function list_registered_entities($owner_guid = 0, $limit = 10, $fullview = true, $viewtypetoggle = false, $allowedtypes = true) {
- elgg_log('list_registered_entities() was deprecated in 1.7 by elgg_list_registered_entities().', 'WARNING');
+ elgg_deprecated_notice('list_registered_entities() was deprecated by elgg_list_registered_entities().', 1.7);
$options = array();