Underscores in info field names are now changed to spaces when rendered.
Not an ideal solution since underscores now can't be used in field names, but since it's PHP's POST handling getting in the way it'll have to do.
This commit is contained in:
parent
45f80a0855
commit
8cf081a9d1
@ -56,7 +56,8 @@ class ProductPage extends Page {
|
||||
}
|
||||
$info = '';
|
||||
foreach($this->product->get_info() as $key => $value) {
|
||||
$info .= replace(array('name' => ucfirst($key),
|
||||
$name = ucfirst(str_replace('_', ' ', $key));
|
||||
$info .= replace(array('name' => $name,
|
||||
'key' => $key,
|
||||
'value' => $value),
|
||||
$info_item_fragment);
|
||||
|
Loading…
x
Reference in New Issue
Block a user