Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Minor fixes and added more methods

  • Loading branch information...
commit 7336701ff107ee67743203e31db15ef182e2d7e7 1 parent 17252e2
@mrmark mrmark authored mudrd8mz committed
View
4 backup/util/converter/base_converter.class.php
@@ -33,13 +33,13 @@ public function get_name() {
public function get_convertdir() {
global $CFG;
- return "$CFG->dirroot/backup/temp/$this->convertdir";
+ return "$CFG->dataroot/temp/backup/$this->convertdir";
}
public function get_tempdir() {
global $CFG;
- return "$CFG->dirroot/backup/temp/$this->tempdir";
+ return "$CFG->dataroot/temp/backup/$this->tempdir";
}
public function delete_convertdir() {
View
11 backup/util/plan/convert_plan.class.php
@@ -3,14 +3,13 @@
* Convert Plan
*/
class convert_plan extends base_plan implements loggable {
-
+ /**
+ * @var plan_converter
+ */
protected $converter;
public function __construct(plan_converter $converter) {
- global $CFG;
-
$this->converter = $converter;
- $this->basepath = $CFG->dataroot . '/temp/backup/' . $converter->get_backupid();
parent::__construct('convert_plan');
}
@@ -23,6 +22,10 @@ public function log($message, $level, $a = null, $depth = null, $display = false
// TODO: Implement log() method.
}
+ public function get_basepath() {
+ return $this->converter->get_convertdir();
+ }
+
public function get_converterid() {
return $this->converter->get_id();
}
Please sign in to comment.
Something went wrong with that request. Please try again.