]> git.immae.eu Git - github/shaarli/Shaarli.git/commitdiff
Removed redundant check on RAINTPL_TMP directory
authorChristophe HENRY <christophe.henry@sbgodin.fr>
Thu, 31 Jul 2014 21:17:30 +0000 (23:17 +0200)
committerChristophe HENRY <christophe.henry@sbgodin.fr>
Thu, 31 Jul 2014 21:31:58 +0000 (23:31 +0200)
The same test is already on line 93

index.php

index fedad2b93ecd99cd612c4d051f4a72126705b7f8..3301b13cf3b1164044f993b428a9de16c9a90593 100644 (file)
--- a/index.php
+++ b/index.php
@@ -66,7 +66,6 @@ error_reporting(E_ALL^E_WARNING);  // See all error except warnings.
 
 include "inc/rain.tpl.class.php"; //include Rain TPL
 raintpl::$tpl_dir = $GLOBALS['config']['RAINTPL_TPL']; // template directory
-if (!is_dir($GLOBALS['config']['RAINTPL_TMP'])) { mkdir($GLOBALS['config']['RAINTPL_TMP'],0705); chmod($GLOBALS['config']['RAINTPL_TMP'],0705); }
 raintpl::$cache_dir = $GLOBALS['config']['RAINTPL_TMP']; // cache directory
 
 ob_start();  // Output buffering for the page cache.