mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-22 08:11:44 +00:00
02_RSS.pm: enable layout storage in configDB
git-svn-id: https://svn.fhem.de/fhem/trunk@5582 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
ef76aa27cd
commit
6bb92946a7
@ -62,6 +62,15 @@ RSS_readLayout($) {
|
||||
my $filename= $hash->{fhem}{filename};
|
||||
my $name= $hash->{NAME};
|
||||
|
||||
if($attr{global}{configfile} eq 'configDB') {
|
||||
my $layout = _cfgDB_Readlayout($filename);
|
||||
if(!(defined($layout))) {
|
||||
$hash->{fhem}{layout}= ("text 0.1 0.1 'Layout definition not found in database!'");
|
||||
Log 1, "RSS $name: Layout $filename not found in database";
|
||||
} else {
|
||||
$hash->{fhem}{layout} = $layout;
|
||||
}
|
||||
} else {
|
||||
if(open(LAYOUT, $filename)) {
|
||||
my @layout= <LAYOUT>;
|
||||
$hash->{fhem}{layout}= join("", @layout);
|
||||
@ -71,6 +80,8 @@ RSS_readLayout($) {
|
||||
Log 1, "RSS $name: Cannot open $filename";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
##################
|
||||
sub
|
||||
|
Loading…
x
Reference in New Issue
Block a user