[18163] commited by me yesterday (and reverted in [18165]) was
broken. I didn't restart rails when testing it because I thought lib/ was auto-refreshed as well and that: ruby -e 'x = []; x[0]["foo"] = "bar"' Would work and autovify like it does in Perl. But no, you have to do: ruby -e 'x = [{}]; x[0]["foo"] = "bar"' This commit is equivalent to [18163] aside from that fix to lib/potlatch.rb
This commit is contained in:
parent
d0c63b6d5d
commit
e0eb2b79b7
4 changed files with 61 additions and 30 deletions
|
@ -232,6 +232,12 @@ class AmfController < ApplicationController
|
|||
help = localised["help_html"]
|
||||
localised.delete("help_html")
|
||||
|
||||
# Populate icon names
|
||||
POTLATCH_PRESETS[10].each { |id|
|
||||
POTLATCH_PRESETS[11][id] = localised["preset_icon_#{id}"]
|
||||
localised.delete("preset_icon_#{id}")
|
||||
}
|
||||
|
||||
return POTLATCH_PRESETS+[localised,help]
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue