Skip to content

Commit

Permalink
Merge pull request #1 from kosikcz/upgrade
Browse files Browse the repository at this point in the history
Removed usage of deprecated function isPost()
  • Loading branch information
tomascepicka committed Dec 15, 2016
2 parents 957711a + 9ad3050 commit 126dcec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GettextTranslator/Panel/Panel.php
Expand Up @@ -115,7 +115,7 @@ public function getPanel()
*/
private function processRequest()
{
if ($this->httpRequest->isPost() && $this->httpRequest->isAjax() && $this->httpRequest->getHeader($this->xhrHeader)) {
if ($this->httpRequest->isMethod('POST') && $this->httpRequest->isAjax() && $this->httpRequest->getHeader($this->xhrHeader)) {
$data = json_decode(file_get_contents('php://input'));

if ($data) {
Expand Down

0 comments on commit 126dcec

Please sign in to comment.