mirror of
https://github.com/e107inc/e107.git
synced 2025-08-25 07:21:03 +02:00
Support for admin-ui multiple images in a single field.
Usage: 'type' => 'images', 'data' => 'array'
This commit is contained in:
@@ -2041,6 +2041,13 @@ class e_front_model extends e_model
|
||||
*/
|
||||
public function getIfPosted($key, $default = '', $index = null)
|
||||
{
|
||||
$d = $this->getDataFields();
|
||||
|
||||
if($d[$key] == 'array')
|
||||
{
|
||||
return e107::unserialize($this->getData((string) $key, $default, $index));
|
||||
}
|
||||
|
||||
$posted = $this->getPostedData((string) $key, null, $index);
|
||||
if(null !== $posted)
|
||||
{
|
||||
|
Reference in New Issue
Block a user