Skip to content

Commit

Permalink
Update CerbereHackedListener.php
Browse files Browse the repository at this point in the history
  • Loading branch information
smalot authored Sep 4, 2016
1 parent 86b7aa1 commit a760724
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/Cerbere/Event/CerbereHackedListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,12 @@ public static function getSubscribedEvents()
public function onReportAction(CerbereReportActionEvent $event)
{
$current_dir = getcwd();
// Change current directory to the module directory.
chdir($event->getProject()->getWorkingDirectory());
try {
// Change current directory to the module directory.
chdir($event->getProject()->getWorkingDirectory());

$hacked = new HackedProject($event->getProject());
$hacked = new HackedProject($event->getProject());

try {
$result = $hacked->computeReport();
} catch (\Exception $e) {
// Todo: log error.
Expand Down

0 comments on commit a760724

Please sign in to comment.