IcingaObject: fix comments for disabled object...

...and switch to multiline comments, they look better in our diffs

fixes #11937
This commit is contained in:
Thomas Gelf 2016-06-13 17:20:44 +02:00
parent e3c08c242b
commit b83bfed186

View File

@ -1389,8 +1389,8 @@ abstract class IcingaObject extends DbObject implements IcingaConfigRenderer
));
if ($this->isDisabled()) {
return "// --- This object has been disabled ---\n// \n// "
. str_replace("\n", "\n// ", $str);
return "/* --- This object has been disabled ---\n"
. $str . "*/\n";
} else {
return $str;
}