|
From: <pf...@us...> - 2012-05-27 06:29:13
|
Revision: 839
http://openautomation.svn.sourceforge.net/openautomation/?rev=839&view=rev
Author: pfry
Date: 2012-05-27 06:29:07 +0000 (Sun, 27 May 2012)
Log Message:
-----------
Fix f?\195?\188r den Fall, dass das Plugin umbenannt wird und dann nicht mehr auf .pl endet
Modified Paths:
--------------
wiregate/plugin/generic/Ansagen.pl
Modified: wiregate/plugin/generic/Ansagen.pl
===================================================================
--- wiregate/plugin/generic/Ansagen.pl 2012-05-26 07:00:53 UTC (rev 838)
+++ wiregate/plugin/generic/Ansagen.pl 2012-05-27 06:29:07 UTC (rev 839)
@@ -22,7 +22,7 @@
my %stations=(); # Internet-Radiostationen
# Konfigurationsfile einlesen
-my $conf=$plugname; $conf=~s/\.pl$/.conf/;
+my $conf=$plugname; $conf.='.conf' unless $conf=~s/\.pl$/.conf/;
open FILE, "</etc/wiregate/plugin/generic/conf.d/$conf" || return "no config found";
my @lines = <FILE>;
close FILE;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|