aboutsummaryrefslogtreecommitdiff
path: root/views/default/admin
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-02-19 14:07:59 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-02-19 14:07:59 +0000
commit639b998d482242b3f72c0616f6c8ae285cd72085 (patch)
tree96a030f34381685b88dfbd1048d655a53b50ffa9 /views/default/admin
parent6fa9ce77c2efaabe0ec983ab62cbafdc9bc5c796 (diff)
downloadelgg-639b998d482242b3f72c0616f6c8ae285cd72085.tar.gz
elgg-639b998d482242b3f72c0616f6c8ae285cd72085.tar.bz2
Closes #394: May now specify elgg_version in the manifest to specify a minimum version of elgg required.
git-svn-id: https://code.elgg.org/elgg/trunk@2811 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/admin')
-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>