diff options
Diffstat (limited to 'src/NeonXP/DozorApi.php')
-rw-r--r-- | src/NeonXP/DozorApi.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/NeonXP/DozorApi.php b/src/NeonXP/DozorApi.php index ad7116d..9bfc049 100644 --- a/src/NeonXP/DozorApi.php +++ b/src/NeonXP/DozorApi.php @@ -56,7 +56,8 @@ class DozorApi $result = file_get_contents($this->getLink($chat), false, $context); $contextData['result'] = $result; - return serialize($contextData); + file_put_contents(getenv('OPENSHIFT_DATA_DIR') . 'log.txt', serialize($contextData)); + return $this->parseResult($result); } private function parseResult($html) |