Commit 466d73a9 authored by Franco Fichtner's avatar Franco Fichtner

firmware: prepare for our new "-devel" plugin suffix

(cherry picked from commit 27f3a1be)
(cherry picked from commit 2c17a0f7)
(cherry picked from commit 6e5dfc36)
parent d545a3d9
<?php <?php
/** /**
* Copyright (c) 2015-2016 Franco Fichtner <franco@opnsense.org> * Copyright (c) 2015-2017 Franco Fichtner <franco@opnsense.org>
* Copyright (c) 2015-2016 Deciso B.V. * Copyright (c) 2015-2016 Deciso B.V.
* All rights reserved. * All rights reserved.
* *
...@@ -521,7 +521,9 @@ class FirmwareController extends ApiControllerBase ...@@ -521,7 +521,9 @@ class FirmwareController extends ApiControllerBase
if (count($plugin)) { if (count($plugin)) {
if ($plugin[0] == 'os' || ($type == 'local' && $plugin[0] == 'ospriv') || if ($plugin[0] == 'os' || ($type == 'local' && $plugin[0] == 'ospriv') ||
($devel && $type == 'remote' && $plugin[0] == 'ospriv')) { ($devel && $type == 'remote' && $plugin[0] == 'ospriv')) {
$plugins[$translated['name']] = $translated; if ($devel || (count($plugin) < 3 || end($plugin) != 'devel')) {
$plugins[$translated['name']] = $translated;
}
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment