X-Git-Url: https://git.sur5r.net/?p=bacula%2Fbacula;a=blobdiff_plain;f=gui%2Fbaculum%2Fprotected%2FAPI%2FPages%2FAPI%2FStoragesShow.php;h=17357d3ee7de2e3df0e98f82c05ee08a779cbfb3;hp=ea8fb01601085f0505240b0b7ab674b5a647397c;hb=2e793c9b32d91e8a44344ac7bd40d82b3769340c;hpb=e26b9d05c8c05fccef0d89c50759d4df75fbd359 diff --git a/gui/baculum/protected/API/Pages/API/StoragesShow.php b/gui/baculum/protected/API/Pages/API/StoragesShow.php index ea8fb01601..17357d3ee7 100644 --- a/gui/baculum/protected/API/Pages/API/StoragesShow.php +++ b/gui/baculum/protected/API/Pages/API/StoragesShow.php @@ -3,7 +3,7 @@ * Bacula(R) - The Network Backup Solution * Baculum - Bacula web interface * - * Copyright (C) 2013-2016 Kern Sibbald + * Copyright (C) 2013-2017 Kern Sibbald * * The main author of Baculum is Marcin Haba. * The original author of Bacula is Kern Sibbald, with contributions @@ -23,9 +23,9 @@ class StoragesShow extends BaculumAPIServer { public function get() { - $storages = $this->getModule('bconsole')->bconsoleCommand($this->director, array('show', 'storages'), $this->user); - $this->output = $storages->output; - $this->error = (integer)$storages->exitcode; + $result = $this->getModule('bconsole')->bconsoleCommand($this->director, array('show', 'storages')); + $this->output = $result->output; + $this->error = $result->exitcode; } } ?>