]> git.sur5r.net Git - bacula/bacula/blobdiff - gui/baculum/protected/Pages/API/VolumePurge.php
baculum: Update copyright dates
[bacula/bacula] / gui / baculum / protected / Pages / API / VolumePurge.php
index 1aba55ba765e573fafea62c7d250d0afea37af7f..0058a3b32d396e2e600d8bcea124ff43840df336 100644 (file)
@@ -3,7 +3,7 @@
  * Bacula® - The Network Backup Solution
  * Baculum - Bacula web interface
  *
- * Copyright (C) 2013-2014 Marcin Haba
+ * Copyright (C) 2013-2015 Marcin Haba
  *
  * The main author of Baculum is Marcin Haba.
  * The main author of Bacula is Kern Sibbald, with contributions from many
@@ -22,7 +22,7 @@ class VolumePurge extends BaculumAPI {
                $mediaid = intval($this->Request['id']);
                $volume = $this->getModule('volume')->getVolumeById($mediaid);
                if(!is_null($volume)) {
-                       $purge = $this->getModule('bconsole')->bconsoleCommand($this->director, array('purge', 'volume="' . $volume->volumename . '"', 'yes'));
+                       $purge = $this->getModule('bconsole')->bconsoleCommand($this->director, array('purge', 'volume="' . $volume->volumename . '"', 'yes'), $this->user);
                        $this->output = $purge->output;
                        $this->error = (integer)$purge->exitcode;
                } else {