Skip to content

Commit

Permalink
MDL-23984 using standard check_dir_exists() in latex
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Aug 29, 2010
1 parent 882efc3 commit fcab3e6
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions filter/tex/latex.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,7 @@ function latex() {

// construct directory structure
$this->temp_dir = $CFG->dataroot . "/temp/latex";
if (!file_exists("$CFG->dataroot/temp")) {
mkdir( "$CFG->dataroot/temp", $CFG->directorypermissions );
}
if (!file_exists( $this->temp_dir )) {
mkdir( $this->temp_dir, $CFG->directorypermissions );
}

check_dir_exists($this->temp_dir);
}

/**
Expand Down

0 comments on commit fcab3e6

Please sign in to comment.