diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-08 05:28:42 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-08 05:28:42 +0000 |
commit | 5829097649009879edd325b38b978e4061553805 (patch) | |
tree | 83eac52ecf9f4c906fa3b7fbb362aad5ea6f35ec /engine/lib | |
parent | b1d46a40d6e04fe14ac83e5d761cdb8db8bac7f1 (diff) | |
download | elgg-5829097649009879edd325b38b978e4061553805.tar.gz elgg-5829097649009879edd325b38b978e4061553805.tar.bz2 |
Added suggests to the plugins deps system. It parallels the requires system, but doesn't affect if the plugin can be enabled and only shows up in the deps table on the advanced view.
git-svn-id: http://code.elgg.org/elgg/trunk@8070 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib')
-rw-r--r-- | engine/lib/plugins.php | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/engine/lib/plugins.php b/engine/lib/plugins.php index 31420a826..8d6daef6e 100644 --- a/engine/lib/plugins.php +++ b/engine/lib/plugins.php @@ -722,10 +722,18 @@ function elgg_get_plugin_dependency_strings($dep) { break; } - if ($dep['status']) { - $strings['comment'] = elgg_echo('ok'); + if ($dep['type'] == 'suggests') { + if ($dep['status']) { + $strings['comment'] = elgg_echo('ok'); + } else { + $strings['comment'] = elgg_echo('ElggPlugin:Dependencies:Suggests:Unsatisfied'); + } } else { - $strings['comment'] = elgg_echo('error'); + if ($dep['status']) { + $strings['comment'] = elgg_echo('ok'); + } else { + $strings['comment'] = elgg_echo('error'); + } } return $strings; |