aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
Diffstat (limited to 'views')
-rw-r--r--views/default/admin/plugins_opt/plugin.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/views/default/admin/plugins_opt/plugin.php b/views/default/admin/plugins_opt/plugin.php
index d4c919e56..be1dc485c 100644
--- a/views/default/admin/plugins_opt/plugin.php
+++ b/views/default/admin/plugins_opt/plugin.php
@@ -20,6 +20,12 @@
$active = $details['active'];
$manifest = $details['manifest'];
+ // Check elgg version if available
+ $version_check_valid = false;
+ if ($manifest['elgg_version'])
+ $version_check_valid = check_plugin_compatibility($manifest['elgg_version']);
+
+
$ts = time();
$token = generate_action_token($ts);
?>
@@ -58,6 +64,17 @@
<?php echo elgg_view("object/plugin", array('plugin' => $plugin, 'entity' => find_plugin_settings($plugin))) ?>
</div>
</div>
+ <?php } ?>
+
+ <?php if ((!$version_check_valid) || (!isset($manifest['elgg_version']))) { ?>
+ <div id="version_check">
+ <?php
+ if (!isset($manifest['elgg_version']))
+ echo elgg_echo('admin:plugins:warning:elggversionunknown');
+ else
+ echo elgg_echo('admin:plugins:warning:elggtoolow');
+ ?>
+ </div>
<?php } ?>
<p><a class="manifest_details"><?php echo elgg_echo("admin:plugins:label:moreinfo"); ?></a></p>