* adjust for web page.
This commit is contained in:
@@ -482,6 +482,11 @@ class baseControl
|
||||
{
|
||||
if(empty($cssPath)) continue;
|
||||
|
||||
$extMethodCssFile = dirname(dirname($cssPath)) . DS . 'css' . DS . $devicePrefix . $methodName . '.css';
|
||||
if(is_file($extMethodCssFile)) $js .= file_get_contents($extMethodCssFile);
|
||||
$extMethodCssLangFile = dirname(dirname($cssPath)) . DS . 'css' . DS . $devicePrefix . "{$methodName}.{$clientLang}.css";
|
||||
if(is_file($extMethodCssLangFile)) $js .= file_get_contents($extMethodCssLangFile);
|
||||
|
||||
$cssMethodExt = $cssPath . $methodName . DS;
|
||||
$cssCommonExt = $cssPath . 'common' . DS;
|
||||
|
||||
@@ -576,6 +581,9 @@ class baseControl
|
||||
{
|
||||
if(empty($jsPath)) continue;
|
||||
|
||||
$extMethodJsFile = dirname(dirname($jsPath)) . DS . 'js' . DS . $this->devicePrefix . $methodName . '.js';
|
||||
if(is_file($extMethodJsFile)) $js .= file_get_contents($extMethodJsFile);
|
||||
|
||||
$jsMethodExt = $jsPath . $methodName . DS;
|
||||
$jsCommonExt = $jsPath . 'common' . DS;
|
||||
|
||||
@@ -942,9 +950,9 @@ class baseControl
|
||||
die(isset($data['message']) ? $data['message'] : 'fail');
|
||||
}
|
||||
|
||||
$message = json_decode(json_encode((array)$data['message']));
|
||||
foreach((array)$message as $item => $errors) $message->$item = implode(',', $errors);
|
||||
die(js::alert(strip_tags(implode('\n', (array)$message))));
|
||||
$message = json_decode(json_encode($data['message']), true);
|
||||
foreach($message as $item => $errors) $message[$item] = implode(',', $errors);
|
||||
die(js::alert(strip_tags(implode('\n', $message))));
|
||||
}
|
||||
die('fail');
|
||||
}
|
||||
|
||||
@@ -206,6 +206,7 @@ class control extends baseControl
|
||||
$viewFile = $commonExtViewFile;
|
||||
}
|
||||
|
||||
if(!is_file($viewFile)) $viewFile = dirname(dirname($viewExtPath['common'])) . DS . 'view' . DS . $this->devicePrefix . $methodName . ".{$viewType}.php";
|
||||
if(!is_file($viewFile)) die(js::error($this->lang->notPage) . js::locate('back'));
|
||||
|
||||
/* Get ext hook files. */
|
||||
|
||||
@@ -83,7 +83,7 @@ class upgrade extends control
|
||||
$version = str_replace(array(' ', '.'), array('', '_'), $this->config->installedVersion);
|
||||
$version = strtolower($version);
|
||||
|
||||
if($this->config->visions == ',lite,')
|
||||
if($this->config->visions == ',lite,')
|
||||
{
|
||||
$installedVersion = str_replace('.', '_', $this->config->installedVersion);
|
||||
$version = array_search($installedVersion, $this->config->upgrade->liteVersion);
|
||||
@@ -92,7 +92,7 @@ class upgrade extends control
|
||||
{
|
||||
if(strpos($key, 'lite') === false) unset($this->lang->upgrade->fromVersions[$key]);
|
||||
}
|
||||
|
||||
|
||||
$this->config->version = ($this->config->edition == 'biz' ? 'LiteVIP' : 'Lite') . $this->config->liteVersion;
|
||||
}
|
||||
|
||||
@@ -238,6 +238,8 @@ class upgrade extends control
|
||||
*/
|
||||
public function mergeProgram($type = 'productline', $programID = 0, $projectType = 'project')
|
||||
{
|
||||
set_time_limit(0);
|
||||
|
||||
$this->session->set('upgrading', true);
|
||||
$this->app->loadLang('program');
|
||||
$this->app->loadLang('project');
|
||||
|
||||
Reference in New Issue
Block a user