Skip to content

Commit

Permalink
* [MOD] Return translated messages on some responses
Browse files Browse the repository at this point in the history
  • Loading branch information
nuxsmin committed Jan 23, 2017
1 parent 52d5c69 commit 165ab90
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions inc/SP/Controller/ConfigActionController.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public function doAction()
$Log = new Log($this->LogMessage);
$Log->writeLog();

$this->JsonResponse->setDescription($this->LogMessage->getHtmlDescription());
$this->JsonResponse->setDescription($this->LogMessage->getHtmlDescription(true));
}

Json::returnJson($this->JsonResponse);
Expand Down Expand Up @@ -576,7 +576,7 @@ protected function importAction()
$Import = new Import($ImportParams);
$LogMessage = $Import->doImport($_FILES['inFile']);

$this->JsonResponse->setDescription($LogMessage->getHtmlDescription());
$this->JsonResponse->setDescription($LogMessage->getHtmlDescription(true));
$this->JsonResponse->setStatus(0);
}

Expand Down
2 changes: 1 addition & 1 deletion inc/SP/Controller/ItemActionController.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ public function doAction()
$Log = new Log($this->LogMessage);
$Log->writeLog();

$this->JsonResponse->setDescription($this->LogMessage->getHtmlDescription());
$this->JsonResponse->setDescription($this->LogMessage->getHtmlDescription(true));
}

Json::returnJson($this->JsonResponse);
Expand Down

0 comments on commit 165ab90

Please sign in to comment.