Skip to content

Commit

Permalink
Compatibilité Jeedom 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dough29 committed Feb 4, 2016
1 parent 1a211d4 commit 7ad150d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions core/class/onkyo.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function postUpdate() {
foreach ($commands as $category=>$catCommands) {
foreach ($catCommands as $commandName=>$conf) {
foreach ($conf as $command=>$type) {
if (!in_array(ereg_replace("[^a-z0-9]", "", strtolower($commandName)), $currentCommands)) {
if (!in_array(preg_replace("[^a-z0-9]", "", strtolower($commandName)), $currentCommands)) {
$type_params = $this->getTypeParams($type);
$onkyoCmd = new onkyoCmd();
$onkyoCmd->setName($commandName);
Expand All @@ -72,7 +72,7 @@ public function postUpdate() {
$onkyoCmd->setType($type);
$onkyoCmd->setSubType($type_params['subtype']);
$onkyoCmd->setIsVisible(0);
$onkyoCmd->setLogicalId(ereg_replace("[^a-z0-9]", "", strtolower($commandName)));
$onkyoCmd->setLogicalId(preg_replace("[^a-z0-9]", "", strtolower($commandName)));
$onkyoCmd->save();
}
}
Expand All @@ -98,7 +98,7 @@ public function postInsert() {
$onkyoCmd->setType($type);
$onkyoCmd->setSubType($type_params['subtype']);
$onkyoCmd->setIsVisible(0);
$onkyoCmd->setLogicalId(ereg_replace("[^a-z0-9]", "", strtolower($commandName)));
$onkyoCmd->setLogicalId(preg_replace("[^a-z0-9]", "", strtolower($commandName)));
$onkyoCmd->save();
}
}
Expand Down
File renamed without changes
File renamed without changes
2 changes: 1 addition & 1 deletion plugin_info/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
<author>Damien LE GUILLOU</author>
<installation>Aucune</installation>
<require>1.212</require>
<version>0.9.160107</version>
<version>0.9.160204</version>
<category>multimedia</category>
</info>

0 comments on commit 7ad150d

Please sign in to comment.