diff options
author | Cash Costello <cash.costello@gmail.com> | 2012-06-24 12:38:25 -0700 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2012-06-24 12:38:25 -0700 |
commit | bec8a7dd1a60d8c546c770b94c2d71e4629bc852 (patch) | |
tree | 9f548ac566f3ac96f7ca7f402cf57ed558f8adf8 /views | |
parent | bb46cc43c3c2f410891f1077e57c39ecf58baba8 (diff) | |
parent | 034a9490d5e8fd2f0b664c3c5e06873c915fdc3b (diff) | |
download | elgg-bec8a7dd1a60d8c546c770b94c2d71e4629bc852.tar.gz elgg-bec8a7dd1a60d8c546c770b94c2d71e4629bc852.tar.bz2 |
Merge pull request #279 from mrclay/2893-plugin-errors
Fixes #2893: More visible invalid plugin errors
Diffstat (limited to 'views')
-rw-r--r-- | views/default/object/plugin/invalid.php | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/views/default/object/plugin/invalid.php b/views/default/object/plugin/invalid.php index f24e1836c..828bceaba 100644 --- a/views/default/object/plugin/invalid.php +++ b/views/default/object/plugin/invalid.php @@ -14,8 +14,7 @@ $plugin = $vars['entity']; $id = $plugin->getID(); $path = htmlspecialchars($plugin->getPath()); -$message = elgg_echo('admin:plugins:warning:invalid', array($id)); -$error = $plugin->getError(); +$message = elgg_echo('admin:plugins:warning:invalid', array($plugin->getError())); $css_id = preg_replace('/[^a-z0-9-]/i', '-', $plugin->getID()); ?> @@ -23,7 +22,8 @@ $css_id = preg_replace('/[^a-z0-9-]/i', '-', $plugin->getID()); <div class="elgg-state-draggable elgg-plugin elgg-state-inactive elgg-state-error" id="elgg-plugin-<?php echo $plugin->guid; ?>"> <div class="elgg-head"><h3><?php echo $id; ?></h3></div> <div class="elgg-body"> - <p><?php echo $message; ?></p> + <p class="elgg-state-error"><?php echo $message; ?></p> + <p><?php echo elgg_echo('admin:plugins:warning:invalid:check_docs'); ?></p> <div class="pts"> <?php @@ -37,7 +37,6 @@ $css_id = preg_replace('/[^a-z0-9-]/i', '-', $plugin->getID()); <div class="hidden elgg-plugin-more" id="elgg-plugin-manifest-<?php echo $css_id; ?>"> <p><?php echo elgg_echo('admin:plugins:label:location') . ": " . $path; ?></p> - <p><?php echo $error; ?></p> </div> </div> </div>
\ No newline at end of file |