Best Answer Yuriy87 , 25 July 2013 - 10:06
Решил проблему
/media/zoo/applications/jbuniversal/elements/jbgallery/jbgallery.php
validateSubmission (функция в самом низу файла)
Было:
public function validateSubmission($value, $params) { $folder = $value->get('value'); $directory = $this->app->path->path('root:' . trim($this->config->get('directory'), '/\\') . '/' . trim($folder, '/\\')); if (!$directory) { throw new AppValidatorException('This directory does not exist'); } return array( 'value' => $value ); } /** * @param array $params * @return null|string */ public function renderSubmission($params = array()) { return $this->edit($params); }
стало:
/** * Validate submission * @param JSONData $value * @param JSONData $params * @return array * @throws AppValidatorException */ public function validateSubmission($value, $params) { $folder = $value->get('value'); $directory = $this->app->path->path('root:' . trim($this->config->get('directory'), '/\\') . '/' . trim($folder, '/\\')); if (!$directory) { throw new AppValidatorException('This directory does not exist'); } return array( 'value' => $folder); } /** * @param array $params * @return null|string */ public function renderSubmission($params = array()) { return $this->edit($params); } }
криво запостил, отредактировать не могу.
вобщем нужно изменить
'value' => $value
на
'value' => $folder
Go to the full post