fix getters/setters

This commit is contained in:
Dennis Eichhorn 2023-05-31 12:03:53 +00:00
parent da627309c3
commit a3a5369f34
3 changed files with 7 additions and 7 deletions

View File

@ -2028,7 +2028,7 @@ final class ApiController extends Controller
$account->l11n
->loadFromLanguage(
$locale[0] ?? $this->app->l11nServer->getLanguage(),
$locale[0] ?? $this->app->l11nServer->language,
$locale[1] ?? $this->app->l11nServer->getCountry()
);
}

View File

@ -522,7 +522,7 @@ final class BackendController extends Controller
$path = \realpath($basePath . '/' . $page . '.md');
if ($path === false) {
$basePath = __DIR__ . '/../../' . $request->getData('id') . '/Docs/' . $type . '/' . $this->app->l11nServer->getLanguage();
$basePath = __DIR__ . '/../../' . $request->getData('id') . '/Docs/' . $type . '/' . $this->app->l11nServer->language;
$path = \realpath($basePath . '/' . $page . '.md');
}
@ -568,11 +568,11 @@ final class BackendController extends Controller
// audit log
if ($request->getData('ptype') === 'p') {
$view->data['auditlogs',$queryMapper->where('id'] = (int) $request->getData('audit'), '<')->limit(25)->execute();
$view->data['auditlogs'] = $queryMapper->where('id', (int) $request->getData('audit'), '<')->limit(25)->execute();
} elseif ($request->getData('ptype') === 'n') {
$view->data['auditlogs',$queryMapper->where('id'] = (int) $request->getData('audit'), '>')->limit(25)->execute();
$view->data['auditlogs'] = $queryMapper->where('id', (int) $request->getData('audit'), '>')->limit(25)->execute();
} else {
$view->data['auditlogs',$queryMapper->where('id'] = 0, '>')->limit(25)->execute();
$view->data['auditlogs'] = $queryMapper->where('id', 0, '>')->limit(25)->execute();
}
return $view;

View File

@ -66,7 +66,7 @@ abstract class Controller extends ModuleAbstract
* @var string[]
* @since 1.0.0
*/
protected static array $providing = [];
public static array $providing = [];
/**
* Dependencies.
@ -74,5 +74,5 @@ abstract class Controller extends ModuleAbstract
* @var string[]
* @since 1.0.0
*/
protected static array $dependencies = [];
public static array $dependencies = [];
}