mirror of
https://github.com/Karaka-Management/oms-Admin.git
synced 2026-02-15 20:18:40 +00:00
fix getters/setters
This commit is contained in:
parent
da627309c3
commit
a3a5369f34
|
|
@ -2028,7 +2028,7 @@ final class ApiController extends Controller
|
||||||
|
|
||||||
$account->l11n
|
$account->l11n
|
||||||
->loadFromLanguage(
|
->loadFromLanguage(
|
||||||
$locale[0] ?? $this->app->l11nServer->getLanguage(),
|
$locale[0] ?? $this->app->l11nServer->language,
|
||||||
$locale[1] ?? $this->app->l11nServer->getCountry()
|
$locale[1] ?? $this->app->l11nServer->getCountry()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -522,7 +522,7 @@ final class BackendController extends Controller
|
||||||
$path = \realpath($basePath . '/' . $page . '.md');
|
$path = \realpath($basePath . '/' . $page . '.md');
|
||||||
|
|
||||||
if ($path === false) {
|
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');
|
$path = \realpath($basePath . '/' . $page . '.md');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -568,11 +568,11 @@ final class BackendController extends Controller
|
||||||
|
|
||||||
// audit log
|
// audit log
|
||||||
if ($request->getData('ptype') === 'p') {
|
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') {
|
} 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 {
|
} else {
|
||||||
$view->data['auditlogs',$queryMapper->where('id'] = 0, '>')->limit(25)->execute();
|
$view->data['auditlogs'] = $queryMapper->where('id', 0, '>')->limit(25)->execute();
|
||||||
}
|
}
|
||||||
|
|
||||||
return $view;
|
return $view;
|
||||||
|
|
|
||||||
|
|
@ -66,7 +66,7 @@ abstract class Controller extends ModuleAbstract
|
||||||
* @var string[]
|
* @var string[]
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
protected static array $providing = [];
|
public static array $providing = [];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Dependencies.
|
* Dependencies.
|
||||||
|
|
@ -74,5 +74,5 @@ abstract class Controller extends ModuleAbstract
|
||||||
* @var string[]
|
* @var string[]
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
protected static array $dependencies = [];
|
public static array $dependencies = [];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user