diff options
author | Cash Costello <cash.costello@gmail.com> | 2011-11-25 13:49:17 -0500 |
---|---|---|
committer | cash <cash.costello@gmail.com> | 2011-11-28 21:44:02 -0500 |
commit | a07b610b49a51ccf5885bf220700115d830c2707 (patch) | |
tree | bb748abb176602b72ffc5dfaf7e43d93f63feb92 /engine | |
parent | d7e3dc4d70ac7a233a05c5836ec0ec9f18243277 (diff) | |
download | elgg-a07b610b49a51ccf5885bf220700115d830c2707.tar.gz elgg-a07b610b49a51ccf5885bf220700115d830c2707.tar.bz2 |
added a better message for php libraries that don't exist on disk
Diffstat (limited to 'engine')
-rw-r--r-- | engine/lib/elgglib.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php index 08b346960..57d602450 100644 --- a/engine/lib/elgglib.php +++ b/engine/lib/elgglib.php @@ -107,7 +107,10 @@ function elgg_load_library($name) { } if (!include_once($CONFIG->libraries[$name])) { - $error = elgg_echo('InvalidParameterException:LibraryNotRegistered', array($name)); + $error = elgg_echo('InvalidParameterException:LibraryNotFound', array( + $name, + $CONFIG->libraries[$name]) + ); throw new InvalidParameterException($error); } } |