* adjust for backup.
This commit is contained in:
@@ -30,6 +30,7 @@ class backup extends control
|
||||
{
|
||||
if(!is_writable($this->backupPath)) $this->view->error = sprintf($this->lang->backup->error->noWritable, $this->backupPath);
|
||||
}
|
||||
if(!is_writable($this->app->getTmpRoot())) $this->view->error = sprintf($this->lang->backup->error->noWritable, $this->app->getTmpRoot());
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -283,7 +283,8 @@ class backupModel extends model
|
||||
*/
|
||||
public function getBackupPath()
|
||||
{
|
||||
return empty($this->config->backup->settingDir) ? $this->app->getTmpRoot() . 'backup' . DS : $this->config->backup->settingDir;
|
||||
$backupPath = empty($this->config->backup->settingDir) ? $this->app->getTmpRoot() . 'backup' . DS : $this->config->backup->settingDir;
|
||||
return trim(str_replace('\\', '/', $backupPath), '/') . '/';
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user