We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 37c459a commit ff4bd32Copy full SHA for ff4bd32
1 file changed
core/class/zwavejs.class.php
@@ -2265,9 +2265,15 @@ public function getImgFilePath() {
2265
}
2266
2267
public function getImage() {
2268
+ $default = parent::getImage();
2269
+ $plugin = plugin::byId(__CLASS__);
2270
+ if ($default != $plugin->getPathImgIcon()) {
2271
+ return $default; // this is a custom image uploaded by the user, we keep it
2272
+ }
2273
+
2274
$file = 'plugins/zwavejs/core/config/devices/' . $this->getImgFilePath();
2275
if (!is_file(__DIR__ . '/../../../../' . $file)) {
- return parent::getImage();
2276
+ return $default;
2277
2278
return $file;
2279
0 commit comments