make lng, version, dbversion and branding protected variables of ApiCommand to avoid the need of 'global' statement

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2018-02-23 18:18:31 +01:00
parent 6409fb2dbe
commit 831ee221f6
6 changed files with 79 additions and 43 deletions

View File

@@ -81,7 +81,7 @@ class PhpSettings extends ApiCommand implements ResourceEntity
}
if (empty($domains)) {
$domains[] = $lng['admin']['phpsettings']['notused'];
$domains[] = $this->lng['admin']['phpsettings']['notused'];
}
// check whether this is our default config