diff --git a/core/lib/Thelia/Install/CheckPermission.php b/core/lib/Thelia/Install/CheckPermission.php index d07b8ed83..15317211b 100644 --- a/core/lib/Thelia/Install/CheckPermission.php +++ b/core/lib/Thelia/Install/CheckPermission.php @@ -44,12 +44,14 @@ class CheckPermission extends BaseInstall const DIR_CONF = 'local/config'; const DIR_LOG = 'log'; const DIR_CACHE = 'cache'; + const DIR_WEB = 'web'; /** @var array Directory needed to be writable */ protected $directoriesToBeWritable = array( self::DIR_CONF, self::DIR_LOG, self::DIR_CACHE, + self::DIR_WEB, ); /** @var array Minimum server configuration necessary */ diff --git a/local/modules/DebugBar/Smarty/Plugin/DebugBar.php b/local/modules/DebugBar/Smarty/Plugin/DebugBar.php index 0cd1abee9..9f3cc8386 100755 --- a/local/modules/DebugBar/Smarty/Plugin/DebugBar.php +++ b/local/modules/DebugBar/Smarty/Plugin/DebugBar.php @@ -71,7 +71,11 @@ class DebugBar extends AbstractSmartyPlugin } } - file_put_contents($cssFile, $assetCss->dump()); + if(!file_exists(THELIA_WEB_DIR . "/cache")) { + @mkdir(THELIA_WEB_DIR . "/cache"); + } + + @file_put_contents($cssFile, $assetCss->dump()); } $render = sprintf('', URL::getInstance()->absoluteUrl($webFile, array(), URL::PATH_TO_FILE)); } @@ -96,7 +100,11 @@ class DebugBar extends AbstractSmartyPlugin } } - file_put_contents($cacheFile, $assetJs->dump()); + if(!file_exists(THELIA_WEB_DIR . "/cache")) { + @mkdir(THELIA_WEB_DIR . "/cache"); + } + + @file_put_contents($cacheFile, $assetJs->dump()); } $render = sprintf('', URL::getInstance()->absoluteUrl($webFile, array(), URL::PATH_TO_FILE)); diff --git a/web/.htaccess b/web/.htaccess old mode 100644 new mode 100755 diff --git a/web/install/bdd.php b/web/install/bdd.php old mode 100644 new mode 100755 diff --git a/web/install/bootstrap.php b/web/install/bootstrap.php old mode 100644 new mode 100755 diff --git a/web/install/config.php b/web/install/config.php old mode 100644 new mode 100755 diff --git a/web/install/connection.php b/web/install/connection.php old mode 100644 new mode 100755 diff --git a/web/install/end.php b/web/install/end.php old mode 100644 new mode 100755 diff --git a/web/install/fd33fd0-6fda040.ico b/web/install/fd33fd0-6fda040.ico old mode 100644 new mode 100755 diff --git a/web/install/footer.php b/web/install/footer.php old mode 100644 new mode 100755 diff --git a/web/install/header.php b/web/install/header.php old mode 100644 new mode 100755 diff --git a/web/install/index.php b/web/install/index.php old mode 100644 new mode 100755 diff --git a/web/install/permission.php b/web/install/permission.php old mode 100644 new mode 100755 diff --git a/web/install/script.js b/web/install/script.js old mode 100644 new mode 100755 diff --git a/web/install/styles.css b/web/install/styles.css old mode 100644 new mode 100755 diff --git a/web/test_to_remove/datas_coupon_edit.json b/web/test_to_remove/datas_coupon_edit.json deleted file mode 100755 index d64345682..000000000 --- a/web/test_to_remove/datas_coupon_edit.json +++ /dev/null @@ -1,85 +0,0 @@ -{ - "breadcrumb" : [ - { - "url" : "0", - "display" : "Racine", - "edit" : "", - "browse" : "" - } - ], - "categories" : [ - { - "id" : "1", - "ligne" : "1", - "classement" : "1", - "titre" : "Boyaux", - "langue_courante" : true, - "parent" : 0 - }, - { - "id" : "18", - "ligne" : "1", - "classement" : "2", - "titre" : "Epices \/ condiments", - "langue_courante" : true, - "parent" : 0 - }, - { - "id" : "100", - "ligne" : "1", - "classement" : "3", - "titre" : "Emballage", - "langue_courante" : true, - "parent" : 0 - }, - { - "id" : "194", - "ligne" : "1", - "classement" : "4", - "titre" : "Petits mat\u00e9riels", - "langue_courante" : true, - "parent" : 0 - }, - { - "id" : "355", - "ligne" : "1", - "classement" : "5", - "titre" : "Materiel de cuisine", - "langue_courante" : true, - "parent" : 0 - }, - { - "id" : "426", - "ligne" : "0", - "classement" : "6", - "titre" : "Bacs", - "langue_courante" : true, - "parent" : 0 - }, - { - "id" : "458", - "ligne" : "1", - "classement" : "7", - "titre" : "Hygi\u00e8ne & entretien", - "langue_courante" : true, - "parent" : 0 - }, - { - "id" : "592", - "ligne" : "1", - "classement" : "8", - "titre" : "Art de la table", - "langue_courante" : true, - "parent" : 0 - }, - { - "id" : "601", - "ligne" : "1", - "classement" : "9", - "titre" : "Mat\u00e9riels", - "langue_courante" : true, - "parent" : 0 - } - ], - "products":[] -} \ No newline at end of file