Commit 53b16389 authored by Marius Burkard's avatar Marius Burkard
Browse files

- use app->tform->lng instead of app->lng

parent 175d3690
Pipeline #5531 passed with stage
in 7 minutes and 24 seconds
......@@ -65,7 +65,7 @@ class page_action extends tform_actions {
}
if(!empty($affected_sites)) {
$app->error($app->lng('error_delete_snippet_active_sites'));
$app->error($app->tform->lng('error_delete_snippet_active_sites'));
}
}
}
......
......@@ -76,12 +76,12 @@ class page_action extends tform_actions {
if($this->dataRecord['active'] !== 'y' && $oldRecord['active'] === 'y') {
$affected_sites = $this->getAffectedSites();
if(!empty($affected_sites)) {
$app->tform->errorMessage .= $app->lng('error_disable_snippet_active_sites');
$app->tform->errorMessage .= $app->tform->lng('error_disable_snippet_active_sites');
}
} elseif($this->dataRecord['customer_viewable'] !== 'y' && $oldRecord['customer_viewable'] === 'y') {
$affected_sites = $this->getAffectedSites();
if(!empty($affected_sites)) {
$app->tform->errorMessage .= $app->lng('error_hide_snippet_active_sites');
$app->tform->errorMessage .= $app->tform->lng('error_hide_snippet_active_sites');
}
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment