From fcab3e647e8fe4423b4f3ee930aa075b6e4d22a0 Mon Sep 17 00:00:00 2001 From: Petr Skoda Date: Sun, 29 Aug 2010 10:12:42 +0000 Subject: [PATCH] MDL-23984 using standard check_dir_exists() in latex --- filter/tex/latex.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/filter/tex/latex.php b/filter/tex/latex.php index 442ae32882e..e758d125749 100644 --- a/filter/tex/latex.php +++ b/filter/tex/latex.php @@ -20,13 +20,7 @@ // 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); } /**