diff options
author | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-09-15 19:31:39 +0000 |
---|---|---|
committer | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-09-15 19:31:39 +0000 |
commit | f809e76743a6ccab2badf69633bb6132c1358f2e (patch) | |
tree | 3ceb4064ab919406671f5a10b201b5e9a8972ccf /engine/lib/elgglib.php | |
parent | 3d7c1441ea3ba018f2bb68be986d08d15aea6374 (diff) | |
download | elgg-f809e76743a6ccab2badf69633bb6132c1358f2e.tar.gz elgg-f809e76743a6ccab2badf69633bb6132c1358f2e.tar.bz2 |
Refs #2220: Pulled remaining classes out of lib files. Core classes now autoloaded via __autoload().
git-svn-id: http://code.elgg.org/elgg/trunk@6941 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/elgglib.php')
-rw-r--r-- | engine/lib/elgglib.php | 6 |
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. * |