diff options
author | Cash Costello <cash.costello@gmail.com> | 2012-07-09 21:41:36 -0400 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2012-07-09 21:41:36 -0400 |
commit | 017b609861984718b73ba909d1b2266d4b144b06 (patch) | |
tree | e1a05562179274bb6f40d1ee10b8579a2ddb070c /engine | |
parent | 5d9a8f414432e575b185c30b8e9764ab18f13ccd (diff) | |
download | elgg-017b609861984718b73ba909d1b2266d4b144b06.tar.gz elgg-017b609861984718b73ba909d1b2266d4b144b06.tar.bz2 |
Fixes #4685 display proper error on invalid requirement
Diffstat (limited to 'engine')
-rw-r--r-- | engine/classes/ElggPluginManifest.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/engine/classes/ElggPluginManifest.php b/engine/classes/ElggPluginManifest.php index 7e79c15c8..6b3932b32 100644 --- a/engine/classes/ElggPluginManifest.php +++ b/engine/classes/ElggPluginManifest.php @@ -456,7 +456,7 @@ class ElggPluginManifest { * Normalizes a dependency array using the defined structs. * Can be used with either requires or suggests. * - * @param array $dep An dependency array. + * @param array $dep A dependency array. * @return array The normalized deps array. */ private function normalizeDep($dep) { @@ -500,8 +500,10 @@ class ElggPluginManifest { break; } } - break; + default: + // unrecognized so we just return the raw dependency + return $dep; } $normalized_dep = $this->buildStruct($struct, $dep); |