]> git.sur5r.net Git - bacula/bacula/blobdiff - gui/baculum/protected/Pages/API/StorageStatus.php
baculum: Assign Baculum copyright to Kern Sibbald
[bacula/bacula] / gui / baculum / protected / Pages / API / StorageStatus.php
index c10b89d85fc67a6a6b5b5e09ff40b6ff81b7a991..d8c0b6ad6555e5b65e5c57b3f0cda13a44e5a17b 100644 (file)
@@ -1,20 +1,23 @@
 <?php
-/**
- * Bacula® - The Network Backup Solution
- * Baculum - Bacula web interface
+/*
+ * Bacula(R) - The Network Backup Solution
+ * Baculum   - Bacula web interface
  *
- * Copyright (C) 2013-2014 Marcin Haba
+ * Copyright (C) 2013-2016 Kern Sibbald
  *
  * The main author of Baculum is Marcin Haba.
- * The main author of Bacula is Kern Sibbald, with contributions from many
- * others, a complete list can be found in the file AUTHORS.
+ * The original author of Bacula is Kern Sibbald, with contributions
+ * from many others, a complete list can be found in the file AUTHORS.
  *
  * You may use this file and others of this release according to the
  * license defined in the LICENSE file, which includes the Affero General
  * Public License, v3.0 ("AGPLv3") and some additional permissions and
  * terms pursuant to its AGPLv3 Section 7.
  *
- * Bacula® is a registered trademark of Kern Sibbald.
+ * This notice must be preserved when any source code is
+ * conveyed and/or propagated.
+ *
+ * Bacula(R) is a registered trademark of Kern Sibbald.
  */
  
 class StorageStatus extends BaculumAPI {
@@ -22,7 +25,7 @@ class StorageStatus extends BaculumAPI {
                $storageid = intval($this->Request['id']);
                $storage = $this->getModule('storage')->getStorageById($storageid);
                if(!is_null($storage)) {
-                       $storageStatus = $this->getModule('bconsole')->bconsoleCommand($this->director, array('status', 'storage="' . $storage->name . '"'));
+                       $storageStatus = $this->getModule('bconsole')->bconsoleCommand($this->director, array('status', 'storage="' . $storage->name . '"'), $this->user);
                        $this->output = $storageStatus->output;
                        $this->error = (integer)$storageStatus->exitcode;
                } else {