Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions WebFiori/Framework/ExtendedWebServicesManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ abstract class ExtendedWebServicesManager extends WebServicesManager {
* @since 1.0
*/
public function __construct(string $version = '1.0.0') {
parent::__construct($version);
parent::__construct(App::getRequest(), $version);
$this->setTranslationHelper();
$langCode = $this->getTranslation()->getCode();
$generalDir = 'general';
Expand Down Expand Up @@ -216,7 +216,7 @@ public function setLangVars($dir,$arr = []) {
* Set the language at which the API is going to use for the response.
*/
private function setTranslationHelper() {
$reqMeth = Request::getMethod();
$reqMeth = $this->getRequest()->getMethod();
$activeSession = SessionsManager::getActiveSession();

if ($activeSession !== null) {
Expand Down
Loading