aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/elgglib.php
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-04-14 11:25:47 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-04-14 11:25:47 +0000
commit6f6f9abc3d45dc305ab8ea8dfd53f7f975982228 (patch)
treea9479ccfb668738246a2107a82e9ff8c00b99c16 /engine/lib/elgglib.php
parent8cf8c5486e22b0d1c5ffb5caa60268016e42f27e (diff)
downloadelgg-6f6f9abc3d45dc305ab8ea8dfd53f7f975982228.tar.gz
elgg-6f6f9abc3d45dc305ab8ea8dfd53f7f975982228.tar.bz2
fixed filtering of external files array and suppressed warning in external files unit test
git-svn-id: http://code.elgg.org/elgg/trunk@8998 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/elgglib.php')
-rw-r--r--engine/lib/elgglib.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php
index a800aca7a..6c94133df 100644
--- a/engine/lib/elgglib.php
+++ b/engine/lib/elgglib.php
@@ -400,7 +400,7 @@ function elgg_get_loaded_external_files($type, $location) {
if (isset($CONFIG->externals) && isset($CONFIG->externals[$type])) {
$items = array_values($CONFIG->externals[$type]);
- $callback = "return \$v->loaded == true && \$v->location == $location;";
+ $callback = "return \$v->loaded == true && \$v->location == '$location';";
$items = array_filter($items, create_function('$v', $callback));
if ($items) {
usort($items, create_function('$a,$b','return $a->priority >= $b->priority;'));