aboutsummaryrefslogtreecommitdiff
path: root/views/default/object/plugin/invalid.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/object/plugin/invalid.php')
-rw-r--r--views/default/object/plugin/invalid.php24
1 files changed, 24 insertions, 0 deletions
diff --git a/views/default/object/plugin/invalid.php b/views/default/object/plugin/invalid.php
new file mode 100644
index 000000000..7fd5d6f5e
--- /dev/null
+++ b/views/default/object/plugin/invalid.php
@@ -0,0 +1,24 @@
+<?php
+/**
+ * Displays an invalid plugin on the admin screen.
+ *
+ * An invalid plugin is a plugin whose isValid() method returns false.
+ * This usually means there are required files missing, unreadable or in the
+ * wrong format.
+ *
+ * @package Elgg.Core
+ * @subpackage Plugins
+ */
+
+$plugin = $vars['entity'];
+
+$id = $plugin->getID();
+$path = htmlspecialchars($plugin->getPath());
+$message = elgg_echo('admin:plugins:warning:invalid', array($id));
+
+?>
+
+<div class="elgg-plugin elgg-state-inactive elgg-state-error">
+ <p><?php echo $message; ?></p>
+ <p><?php echo elgg_echo('admin:plugins:label:location') . ": " . $path; ?></p>
+</div>