aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2011-11-25 13:49:17 -0500
committerCash Costello <cash.costello@gmail.com>2011-11-25 13:49:17 -0500
commit3d9b7cc539d390043f1c28d1776dc97e591f5d87 (patch)
tree7a48d074eb59a74b231f3dc3f16e34bffc974d5b
parent2eb8c06a0200764787cc2dba5854e1d926e93acc (diff)
downloadelgg-3d9b7cc539d390043f1c28d1776dc97e591f5d87.tar.gz
elgg-3d9b7cc539d390043f1c28d1776dc97e591f5d87.tar.bz2
added a better message for php libraries that don't exist on disk
-rw-r--r--engine/lib/elgglib.php5
-rw-r--r--languages/en.php1
2 files changed, 5 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);
}
}
diff --git a/languages/en.php b/languages/en.php
index 1576ed73d..036ca8883 100644
--- a/languages/en.php
+++ b/languages/en.php
@@ -167,6 +167,7 @@ $english = array(
'InvalidParameterException:DoesNotBelongOrRefer' => "Does not belong to entity or refer to entity.",
'InvalidParameterException:MissingParameter' => "Missing parameter, you need to provide a GUID.",
'InvalidParameterException:LibraryNotRegistered' => '%s is not a registered library',
+ 'InvalidParameterException:LibraryNotFound' => 'Could not load the %s library from %s',
'APIException:ApiResultUnknown' => "API Result is of an unknown type, this should never happen.",
'ConfigurationException:NoSiteID' => "No site ID has been specified.",