aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/elgglib.php
diff options
context:
space:
mode:
authorewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-20 08:36:32 +0000
committerewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-20 08:36:32 +0000
commit863c7044a223d101b29e630d048d0f53580f4096 (patch)
tree80fe3ad2c7487bcaf62bd641118edd632ea5157d /engine/lib/elgglib.php
parent9f41e8b1a34044d654ce3c6381efe3b3e2030c35 (diff)
downloadelgg-863c7044a223d101b29e630d048d0f53580f4096.tar.gz
elgg-863c7044a223d101b29e630d048d0f53580f4096.tar.bz2
Fixes #2468: Deprecated call_gatekeeper() and callpath_gatekeeper()
git-svn-id: http://code.elgg.org/elgg/trunk@7369 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/elgglib.php')
-rw-r--r--engine/lib/elgglib.php10
1 files changed, 7 insertions, 3 deletions
diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php
index cf3d25822..fb7a4578b 100644
--- a/engine/lib/elgglib.php
+++ b/engine/lib/elgglib.php
@@ -1335,9 +1335,11 @@ function elgg_deprecated_notice($msg, $dep_version) {
* @param string $file Optional file that the function must reside in.
*
* @return bool
- * @todo This is neat but is it necessary?
+ *
+ * @deprecated 1.8 A neat but pointless function
*/
function call_gatekeeper($function, $file = "") {
+ elgg_deprecated_notice("call_gatekeeper() is neat but pointless", 1.8);
// Sanity check
if (!$function) {
return false;
@@ -1401,11 +1403,13 @@ function call_gatekeeper($function, $file = "") {
* called by something on $path, if false the whole call stack is
* searched.
*
- * @todo Again, very neat, but is it necessary?
- *
* @return void
+ *
+ * @deprecated 1.8 A neat but pointless function
*/
function callpath_gatekeeper($path, $include_subdirs = true, $strict_mode = false) {
+ elgg_deprecated_notice("callpath_gatekeeper() is neat but pointless", 1.8);
+
global $CONFIG;
$path = sanitise_string($path);