summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/pluginlist.php28
1 files changed, 1 insertions, 27 deletions
diff --git a/lib/pluginlist.php b/lib/pluginlist.php
index 0e1a81249..1e15aea64 100644
--- a/lib/pluginlist.php
+++ b/lib/pluginlist.php
@@ -166,37 +166,11 @@ class PluginListItem extends Widget
/**
* Grab metadata about this plugin...
- * Warning: horribly inefficient and may explode!
- * Doesn't work for disabled plugins either.
- *
- * @fixme pull structured data from plugin source
*/
function metaInfo()
{
$versions = self::getPluginVersions();
- $found = false;
-
- foreach ($versions as $info) {
- // hack for URL shorteners... "LilUrl (ur1.ca)" etc
- list($name, ) = explode(' ', $info['name']);
-
- if ($name == $this->plugin) {
- if ($found) {
- // hack for URL shorteners...
- $found['rawdescription'] .= "<br />\n" . $info['rawdescription'];
- } else {
- $found = $info;
- }
- }
- }
-
- if ($found) {
- return $found;
- } else {
- return array('name' => $this->plugin,
- 'rawdescription' => _m('plugin-description',
- '(Plugin descriptions unavailable when disabled.)'));
- }
+ return $versions[$this->plugin];
}
/**