instead of env-variable, show ditro editor which is defined in the xml

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2015-08-13 15:37:34 +02:00
parent 967bd45a63
commit 4da3a87772
10 changed files with 21 additions and 9 deletions

View File

@@ -65,6 +65,12 @@ class ConfigParser {
*/
public $distributionVersion = '';
/**
* Recommended editor
* @var string
*/
public $distributionEditor = '/bin/nano';
/**
* Show if this configuration is deprecated
* @var bool
@@ -106,6 +112,7 @@ class ConfigParser {
case "name": $this->distributionName = (string)$value; break;
case "version": $this->distributionVersion = (string)$value; break;
case "codename": $this->distributionCodename = (string)$value; break;
case "defaulteditor": $this->distributionEditor = (string)$value; break;
case "deprecated": (string)$value == 'true' ? $this->deprecated = true : $this->deprecated = false; break;
}
}