you should revert commit modifications, see https://github.com/nlegoff/Phraseanet/commits/573acede96fa160f8c0d77a8b8b8bd821e8ca4dc/plugins/commands.php