test if cache directory exists before launching debug bar
This commit is contained in:
@@ -44,12 +44,14 @@ class CheckPermission extends BaseInstall
|
|||||||
const DIR_CONF = 'local/config';
|
const DIR_CONF = 'local/config';
|
||||||
const DIR_LOG = 'log';
|
const DIR_LOG = 'log';
|
||||||
const DIR_CACHE = 'cache';
|
const DIR_CACHE = 'cache';
|
||||||
|
const DIR_WEB = 'web';
|
||||||
|
|
||||||
/** @var array Directory needed to be writable */
|
/** @var array Directory needed to be writable */
|
||||||
protected $directoriesToBeWritable = array(
|
protected $directoriesToBeWritable = array(
|
||||||
self::DIR_CONF,
|
self::DIR_CONF,
|
||||||
self::DIR_LOG,
|
self::DIR_LOG,
|
||||||
self::DIR_CACHE,
|
self::DIR_CACHE,
|
||||||
|
self::DIR_WEB,
|
||||||
);
|
);
|
||||||
|
|
||||||
/** @var array Minimum server configuration necessary */
|
/** @var array Minimum server configuration necessary */
|
||||||
|
|||||||
@@ -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('<link rel="stylesheet" href="%s">', URL::getInstance()->absoluteUrl($webFile, array(), URL::PATH_TO_FILE));
|
$render = sprintf('<link rel="stylesheet" href="%s">', 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('<script src="%s"></script>', URL::getInstance()->absoluteUrl($webFile, array(), URL::PATH_TO_FILE));
|
$render = sprintf('<script src="%s"></script>', URL::getInstance()->absoluteUrl($webFile, array(), URL::PATH_TO_FILE));
|
||||||
|
|||||||
0
web/.htaccess
Normal file → Executable file
0
web/.htaccess
Normal file → Executable file
0
web/install/bdd.php
Normal file → Executable file
0
web/install/bdd.php
Normal file → Executable file
0
web/install/bootstrap.php
Normal file → Executable file
0
web/install/bootstrap.php
Normal file → Executable file
0
web/install/config.php
Normal file → Executable file
0
web/install/config.php
Normal file → Executable file
0
web/install/connection.php
Normal file → Executable file
0
web/install/connection.php
Normal file → Executable file
0
web/install/end.php
Normal file → Executable file
0
web/install/end.php
Normal file → Executable file
0
web/install/fd33fd0-6fda040.ico
Normal file → Executable file
0
web/install/fd33fd0-6fda040.ico
Normal file → Executable file
|
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 3.4 KiB |
0
web/install/footer.php
Normal file → Executable file
0
web/install/footer.php
Normal file → Executable file
0
web/install/header.php
Normal file → Executable file
0
web/install/header.php
Normal file → Executable file
0
web/install/index.php
Normal file → Executable file
0
web/install/index.php
Normal file → Executable file
0
web/install/permission.php
Normal file → Executable file
0
web/install/permission.php
Normal file → Executable file
0
web/install/script.js
Normal file → Executable file
0
web/install/script.js
Normal file → Executable file
0
web/install/styles.css
Normal file → Executable file
0
web/install/styles.css
Normal file → Executable file
@@ -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":[]
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user