Source
500
500
}
501
501
else {
502
502
$message = $status == TRIGGER_STATUS_ENABLED
503
503
? _n('Cannot enable trigger', 'Cannot enable triggers', $updated)
504
504
: _n('Cannot disable trigger', 'Cannot disable triggers', $updated);
505
505
506
506
CMessageHelper::setErrorTitle($message);
507
507
}
508
508
509
509
if (hasRequest('backurl')) {
510
-
$response = new CControllerResponseRedirect(getRequest('backurl'));
510
+
$response = new CControllerResponseRedirect(new CUrl(getRequest('backurl')));
511
511
$response->redirect();
512
512
}
513
513
}
514
514
elseif (hasRequest('action') && getRequest('action') === 'trigger.masscopyto' && hasRequest('copy')
515
515
&& hasRequest('g_triggerid')) {
516
516
517
517
if (getRequest('copy_targetids', []) && hasRequest('copy_type')) {
518
518
519
519
// Hosts or templates.
520
520
if (getRequest('copy_type') == COPY_TYPE_TO_HOST || getRequest('copy_type') == COPY_TYPE_TO_TEMPLATE) {