Changeset View
Changeset View
Standalone View
Standalone View
core/units/helpers/file_helper.php
Show First 20 Lines • Show All 133 Lines • ▼ Show 20 Line(s) | |||||
* | * | ||||
* @param string $prefix | * @param string $prefix | ||||
* @param bool $is_image | * @param bool $is_image | ||||
* @return void | * @return void | ||||
* @access public | * @access public | ||||
*/ | */ | ||||
public function createItemFiles($prefix, $is_image = false) | public function createItemFiles($prefix, $is_image = false) | ||||
{ | { | ||||
if ( $this->Application->isWebRequest() ) { | |||||
$items_info = $this->Application->GetVar($prefix); | $items_info = $this->Application->GetVar($prefix); | ||||
} | |||||
else { | |||||
$items_info = false; | |||||
} | |||||
if ($items_info) { | if ( $items_info ) { | ||||
list (, $fields_values) = each($items_info); | list (, $fields_values) = each($items_info); | ||||
$this->createUploadFields($prefix, $fields_values, $is_image); | $this->createUploadFields($prefix, $fields_values, $is_image); | ||||
} | } | ||||
else { | else { | ||||
$this->createUploadFields($prefix, Array(), $is_image); | $this->createUploadFields($prefix, Array(), $is_image); | ||||
} | } | ||||
} | } | ||||
▲ Show 20 Lines • Show All 330 Lines • Show Last 20 Lines |