mirror of
https://github.com/opnsense/plugins.git
synced 2026-05-28 04:34:15 -04:00
all: style sweep
This commit is contained in:
parent
d2b58ac294
commit
5b179b652c
3 changed files with 2 additions and 3 deletions
|
|
@ -1493,5 +1493,4 @@ class SettingsController extends ApiControllerBase
|
|||
"name"
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -36,11 +36,10 @@ class M2_6_0 extends BaseModelMigration
|
|||
{
|
||||
// Migrate old stats user:password entries to new user management feature
|
||||
if (!empty((string)$model->general->stats->users)) {
|
||||
|
||||
// Add new user for each entry
|
||||
$UUIDlist = array();
|
||||
foreach (explode(',', (string)$model->general->stats->users) as $statsuser) {
|
||||
$olddata = explode(':',$statsuser,2);
|
||||
$olddata = explode(':', $statsuser, 2);
|
||||
$userNode = $model->users->user->Add();
|
||||
$userNode->name = (string)$olddata[0];
|
||||
$userNode->description = 'stats user';
|
||||
|
|
|
|||
|
|
@ -25,6 +25,7 @@
|
|||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
namespace OPNsense\Backup\Api;
|
||||
|
||||
use OPNsense\Base\ApiControllerBase;
|
||||
|
||||
class BackupController extends ApiControllerBase
|
||||
|
|
|
|||
Loading…
Reference in a new issue