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

@@ -52,7 +52,7 @@ class FpmDaemons extends ApiCommand implements ResourceEntity
}
if (empty($configs)) {
$configs[] = $lng['admin']['phpsettings']['notused'];
$configs[] = $this->lng['admin']['phpsettings']['notused'];
}
$row['configs'] = $configs;