Closed
Bug 495089
Opened 17 years ago
Closed 17 years ago
Bring customizable parameters back to amo2009 install element
Categories
(addons.mozilla.org Graveyard :: Collections, defect)
addons.mozilla.org Graveyard
Collections
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: wenzel, Unassigned)
Details
Attachments
(1 file)
|
2.73 KB,
patch
|
wenzel
:
review+
|
Details | Diff | Splinter Review |
Our old install element was called like this:
$_install_render_options = array(
'addonIconPath' => $addonIconPath,
'addonName' => $addon['Translation']['name']['string'],
'addonId' => $addon['Addon']['id'],
'addonFiles' => $version['File'],
'addonEULA' => $addon['Translation']['eula']['string'],
'addonStatus' => $addon['Addon']['status'],
'addonType' => $addon['Addon']['addontype_id'],
'allPlatforms' => $platforms,
'compatible_apps'=> $version['Compatibility']
);
echo $this->renderElement('install', $_install_render_options);*/
.. with a bunch of customizable options allowing to define in detail what options to show or not, and where it got its data from.
The new one has hardly any of these parameters, and relies on a well-formed add-on array being passed in, which it then uses to extract a bunch of default values.
This led to problems on the version history page (not all old versions can just point to the latest.xpi shortcut), and similar problems may appear elsewhere (on the EULA pages, maybe?).
If this turns out to be a bigger problem in other parts of the page, we should fix this. If, however, I ran into the only issue with it, we can probably WONTFIX this.
Comment 1•17 years ago
|
||
Ah, that makes sense now - try this patch on for size. Also deleted the leftover mockup markup I mentioned in bug 495090.
Attachment #379920 -
Flags: review?(fwenzel)
| Reporter | ||
Updated•17 years ago
|
Attachment #379920 -
Flags: review?(fwenzel) → review+
| Reporter | ||
Comment 2•17 years ago
|
||
Comment on attachment 379920 [details] [diff] [review]
allowing for custom parameters in install eklement
Looks good to me! Of course the two parts of the patch have nothing to do with each other but I shall forgive you this once ;-)
Can you please add the valid parameters to the documentation block of the element, too? You can probably just copy most, if not all, of them from the old element's code.
After that, please go ahead and check this in.
Comment 3•17 years ago
|
||
Checked in r26377
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
| Assignee | ||
Updated•10 years ago
|
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•