Merge branch 'develop' into patch-1
commit
07243f4cb5
|
@ -165,7 +165,9 @@ abstract class AbstractController implements ControllerInterface
|
||||||
}
|
}
|
||||||
$this->xhr = (bool) psm_GET('xhr', psm_POST('xhr', false));
|
$this->xhr = (bool) psm_GET('xhr', psm_POST('xhr', false));
|
||||||
|
|
||||||
if (!in_array($action, $this->actions) || !($result = $this->runAction($action))) {
|
$result = $this->runAction($action);
|
||||||
|
|
||||||
|
if (!in_array($action, $this->actions) || !$result) {
|
||||||
$result = $this->runAction($this->action_default);
|
$result = $this->runAction($this->action_default);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -35,11 +35,6 @@ use psm\Service\Database;
|
||||||
abstract class AbstractServerController extends AbstractController
|
abstract class AbstractServerController extends AbstractController
|
||||||
{
|
{
|
||||||
|
|
||||||
public function __construct(Database $db, \Twig_Environment $twig)
|
|
||||||
{
|
|
||||||
parent::__construct($db, $twig);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get all servers for the current user
|
* Get all servers for the current user
|
||||||
* @param Countable|array|\PDOStatement $server_id (int) if true only that server will be retrieved.
|
* @param Countable|array|\PDOStatement $server_id (int) if true only that server will be retrieved.
|
||||||
|
|
|
@ -275,7 +275,6 @@ class StatusNotifier
|
||||||
|
|
||||||
$this->combiNotification['notifications'][$method][$status][$this->server_id] =
|
$this->combiNotification['notifications'][$method][$status][$this->server_id] =
|
||||||
psm_parse_msg($this->status_new, $method . '_message', $this->server, true);
|
psm_parse_msg($this->status_new, $method . '_message', $this->server, true);
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -324,7 +323,6 @@ class StatusNotifier
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
unset($notifications);
|
unset($notifications);
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -403,7 +401,6 @@ class StatusNotifier
|
||||||
$mail->Send();
|
$mail->Send();
|
||||||
$mail->ClearAddresses();
|
$mail->ClearAddresses();
|
||||||
}
|
}
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue