Skip to content

Commit

Permalink
Resolve class not found for project listing (directus#1672)
Browse files Browse the repository at this point in the history
  • Loading branch information
binal-7span authored Jan 21, 2020
1 parent ebd6a41 commit f6d06e7
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/endpoints/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
use Directus\Exception\NotInstalledException;
use Directus\Util\StringUtils;
use Directus\Services\ServerService;
use Directus\Config\Context;

class Server extends Route
{
Expand Down Expand Up @@ -37,7 +38,7 @@ public function projects(Request $request, Response $response)
$projectNames[] = '_';
} else {
$basePath = \Directus\get_app_base_path();
$scannedDirectory = \Directus\scan_folder($basePath.'/config');
$scannedDirectory = \Directus\scan_folder($basePath . '/config');

$configFiles = $scannedDirectory;

Expand Down Expand Up @@ -95,9 +96,9 @@ public function getInfo(Request $request, Response $response)
],
],
'permissions' => [
'public' => substr(sprintf('%o', fileperms($basePath.'/public')), -4),
'logs' => substr(sprintf('%o', fileperms($basePath.'/logs')), -4),
'uploads' => substr(sprintf('%o', fileperms($basePath.'/public/uploads')), -4),
'public' => substr(sprintf('%o', fileperms($basePath . '/public')), -4),
'logs' => substr(sprintf('%o', fileperms($basePath . '/logs')), -4),
'uploads' => substr(sprintf('%o', fileperms($basePath . '/public/uploads')), -4),
],
];

Expand Down

0 comments on commit f6d06e7

Please sign in to comment.