Skip to content
Snippets Groups Projects
Commit 53b16389 authored by Marius Burkard's avatar Marius Burkard
Browse files

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

parent 175d3690
No related branches found
No related tags found
No related merge requests found
...@@ -65,7 +65,7 @@ class page_action extends tform_actions { ...@@ -65,7 +65,7 @@ class page_action extends tform_actions {
} }
if(!empty($affected_sites)) { 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 { ...@@ -76,12 +76,12 @@ class page_action extends tform_actions {
if($this->dataRecord['active'] !== 'y' && $oldRecord['active'] === 'y') { if($this->dataRecord['active'] !== 'y' && $oldRecord['active'] === 'y') {
$affected_sites = $this->getAffectedSites(); $affected_sites = $this->getAffectedSites();
if(!empty($affected_sites)) { 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') { } elseif($this->dataRecord['customer_viewable'] !== 'y' && $oldRecord['customer_viewable'] === 'y') {
$affected_sites = $this->getAffectedSites(); $affected_sites = $this->getAffectedSites();
if(!empty($affected_sites)) { 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');
} }
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment