-
Notifications
You must be signed in to change notification settings - Fork 282
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Minor misc fixes #1986
Minor misc fixes #1986
Conversation
xibo/xibosignage#3079
xibo/xibosignage#3080
… and Display Groups grids. xibo/xibosignage#2927
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Translation tweaks in commented cases.
lib/Service/PlayerActionService.php
Outdated
throw new InvalidArgumentException(__('This Player is not configured or ready to receive push commands over XMR. Please contact your administrator.'), 'xmrRegistered'); | ||
if ($display->xmrChannel == '' || $display->xmrPubKey == '') { | ||
throw new InvalidArgumentException( | ||
__(sprintf( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to be the other way around sprintf(__())
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
whoops, fixed
lib/Service/PlayerActionService.php
Outdated
|
||
$displayAction = clone $action; | ||
|
||
try { | ||
$displayAction->setIdentity($display->xmrChannel, $display->xmrPubKey); | ||
} catch (\Exception $exception) { | ||
throw new InvalidArgumentException(__('Invalid XMR registration'), 'xmrPubKey'); | ||
throw new InvalidArgumentException( | ||
__(sprintf( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As above
throw new ConfigurationException(sprintf(__('%d of %d player actions failed'), $failures, count($this->actions))); | ||
if ($failures > 0) { | ||
throw new ConfigurationException( | ||
sprintf( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one is the right way around 😄
With Selected
to execute command xibo#2927