Денис, я исправил код функции Dispatch (
\media\zoo\applications\jbuniversal\application.php )
На следующий:
public function dispatch() {
if ($template = $this->getTemplate()) {
$this->app->path->register($template->getPath().'/classes', 'classes');
}
parent::dispatch();
}
Было так:
public function dispatch()
{
$this->_init();
$ctrlRequest = $this->app->request->get('controller', 'word', 'default');
$ctrlRequest = str_replace('jbuniversal', '', $ctrlRequest);
$ctrlName = $ctrlRequest;
// get current controller
if ($this->app->jbenv->isSite()) {
$newControllerPath = $this->app->path->path('jbzoo:/controllers/' . $ctrlRequest . '.php');
$defaultControllerPath = JPATH_COMPONENT_SITE . DS . 'controllers' . DS . $ctrlRequest . '.php';
} else {
$this->app->jbtoolbar->toolbar();
$newControllerPath = $this->app->path->path('jbzoo:/controllers/admin.' . $ctrlRequest . '.php');
$defaultControllerPath = JPATH_COMPONENT_ADMINISTRATOR . DS . 'controllers' . DS . $ctrlRequest . '.php';
}
// check is override controller exists
if ($newControllerPath && JFile::exists($newControllerPath)) {
$ctrlName = $ctrlRequest . $this->getGroup();
// set and dispatch it
$this->app->request->set('controller', $ctrlName);
require_once($newControllerPath);
} else {
require_once($defaultControllerPath);
}
$this->app->jbdebug->mark('application::dispatch::before');
$this->app->dispatch($ctrlName);
$this->app->jbdebug->mark('application::dispatch::after');
}
В данном варианте Submission работает с элементом Image Pro, я сейчас не вникал в код детально, но чем мне это может "грозить" такое изменение?