diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-02-01 00:53:06 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-02-01 00:53:06 +0000 |
commit | ced1f7e98a99b4bd702a362ddd1968ff1e2ae5f0 (patch) | |
tree | 64b4cba6c6ced5e7f7f8b28164134e7c45e4bfb4 /engine/lib/sites.php | |
parent | becacf9b043c2526e910d84fe41b96e800aca602 (diff) | |
download | elgg-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/sites.php')
-rw-r--r-- | engine/lib/sites.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/lib/sites.php b/engine/lib/sites.php index c69032bd2..e9da4bdab 100644 --- a/engine/lib/sites.php +++ b/engine/lib/sites.php @@ -54,7 +54,7 @@ class ElggSite extends ElggEntity { // Is $guid is an ElggSite? Use a copy constructor else if ($guid instanceof ElggSite) { - elgg_log('This type of usage of the ElggSite constructor was deprecated in 1.7. Please use the clone method.', 'WARNING'); + elgg_deprecated_notice('This type of usage of the ElggSite constructor was deprecated. Please use the clone method.', 1.7); foreach ($guid->attributes as $key => $value) { $this->attributes[$key] = $value; @@ -504,7 +504,7 @@ function get_site_by_url($url) { * @deprecated 1.7 */ function search_for_site($criteria, $limit = 10, $offset = 0, $order_by = "", $count = false) { - elgg_log('search_for_site() was deprecated in 1.7.', 'WARNING'); + elgg_deprecated_notice('search_for_site() was deprecated by new search plugin.', 1.7); global $CONFIG; $criteria = sanitise_string($criteria); |