mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-10 17:14:26 +02:00
move isDirectoryUsable to System
This commit is contained in:
parent
6a9d73f7d9
commit
b79bd63231
4 changed files with 47 additions and 49 deletions
|
@ -13,7 +13,6 @@ use Friendica\Core\Config\ConfigCacheLoader;
|
|||
use Friendica\Database\DBA;
|
||||
use Friendica\Factory\ConfigFactory;
|
||||
use Friendica\Network\HTTPException\InternalServerErrorException;
|
||||
use Friendica\Util\BasePath;
|
||||
use Psr\Log\LoggerInterface;
|
||||
|
||||
/**
|
||||
|
@ -194,7 +193,7 @@ class App
|
|||
$this->logger = $logger;
|
||||
$this->basePath = $this->config->get('system', 'basepath');
|
||||
|
||||
if (!BasePath::isDirectoryUsable($this->basePath, false)) {
|
||||
if (!Core\System::isDirectoryUsable($this->basePath, false)) {
|
||||
throw new Exception('Basepath ' . $this->basePath . ' isn\'t usable.');
|
||||
}
|
||||
$this->basePath = rtrim($this->basePath, DIRECTORY_SEPARATOR);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue