Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAleksey Lim <alsroot@member.fsf.org>2009-06-28 23:57:51 (GMT)
committer Aleksey Lim <alsroot@member.fsf.org>2009-06-28 23:57:51 (GMT)
commitd18a7cf5e09f01239e92d79173fb713de099edda (patch)
tree5ff981c30a86da6eeb0ee68833f09509941513e1
parente6662a18f3b676f5ae53878ddb5bb0c8a037b82b (diff)
Fix errors in lookup popup menu for addons names while editing features
-rw-r--r--site/app/views/elements/search.thtml8
1 files changed, 4 insertions, 4 deletions
diff --git a/site/app/views/elements/search.thtml b/site/app/views/elements/search.thtml
index 4fc2253..8359075 100644
--- a/site/app/views/elements/search.thtml
+++ b/site/app/views/elements/search.thtml
@@ -185,17 +185,17 @@ if (!isset($category)) $category = array(0, 0);
<option value="all"<?=($category[0]==0 ? ' selected="selected"' : '')?>><?=_('search_form_all_addons')?></option>
<?php
// AmoVersions is from controller->beforeRender()
- foreach ($AmoCategories as $category):
+ foreach ($AmoCategories as $cat):
// skip "plugins" as it is a static page at the moment and thus
// cannot be searched here
- if ($category['type'] == ADDON_PLUGIN) continue;
+ if ($cat['type'] == ADDON_PLUGIN) continue;
- if ($category[0] == $category['type'] && ($category[1]==$category['cat'] || $category['cat']==0))
+ if ($category[0] == $cat['type'] && ($category[1]==$cat['cat'] || $cat['cat']==0))
$sel = ' selected="selected"';
else
$sel = '';
?>
- <option value="<?=$category['type'].','.$category['cat']?>"<?=$sel?>><?=$html->entities($category['name'])?></option>
+ <option value="<?=$cat['type'].','.$cat['cat']?>"<?=$sel?>><?=$html->entities($cat['name'])?></option>
<?php endforeach; ?>
</select><?=$html->submit(" ", array('id'=>'my-submit', 'title' => ___('search_form_submit_tooltip'))); ?>
</fieldset>