aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/elgglib.php
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib/elgglib.php')
-rw-r--r--engine/lib/elgglib.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php
index ae6509454..7ddb91600 100644
--- a/engine/lib/elgglib.php
+++ b/engine/lib/elgglib.php
@@ -1919,8 +1919,6 @@ function is_ip_in_array(array $networks, $ip) {
return false;
}
-require_once dirname(dirname(__FILE__)).'/classes/Friendable.php';
-
/**
* Builds a URL from the a parts array like one returned by {@link parse_url()}.
*
@@ -2268,6 +2266,10 @@ function js_page_handler($page) {
}
}
+function __autoload($class) {
+ require_once dirname(dirname(__FILE__))."/classes/$class.php";
+}
+
/**
* Emits a shutdown:system event upon PHP shutdown, but before database connections are dropped.
*