Skip to content

Commit

Permalink
Merge pull request #53 from JEALG/beta
Browse files Browse the repository at this point in the history
support core 4.4
  • Loading branch information
Loïc committed Apr 16, 2023
2 parents e2b7877 + 7ebe249 commit 8837c9d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions core/ajax/networks.ajax.php
Expand Up @@ -60,6 +60,9 @@
throw new Exception(__('Aucune methode correspondante à : ', __FILE__) . init('action'));
/* * *********Catch exeption*************** */
} catch (Exception $e) {
ajax::error(displayExeption($e), $e->getCode());
if (version_compare(jeedom::version(), '4.4', '>=')) {
ajax::error(displayException($e), $e->getCode());
} else {
ajax::error(displayExeption($e), $e->getCode());
}
}
?>

0 comments on commit 8837c9d

Please sign in to comment.