[fix] a little bit error
This commit is contained in:
parent
90087123ba
commit
e64b0bb0ec
@ -75,9 +75,9 @@ languageselection = false
|
||||
; sha256 in HMAC for the deletion token
|
||||
zerobincompatibility = false
|
||||
|
||||
; allows you to specify the name of the web server you are using to use ParseBin.
|
||||
; if you use Nginx, decommente and add nginx.
|
||||
webserver = "Nginx"
|
||||
; allows you to specify the name of the web server you are using to use PrivateBin.
|
||||
; if you use Nginx, uncomment and add nginx.
|
||||
; webserver = "Nginx"
|
||||
|
||||
[expire]
|
||||
; expire value that is selected per default
|
||||
|
@ -82,13 +82,13 @@ abstract class AbstractPersistence
|
||||
*/
|
||||
protected static function _initialize()
|
||||
{
|
||||
if (property_exists($data->meta, 'webserver') && $data->meta->webserver && $this->_conf->getKey('webserver') == "Apache") {
|
||||
// Create storage directory if it does not exist.
|
||||
if (!is_dir(self::$_path)) {
|
||||
if (!@mkdir(self::$_path, 0700)) {
|
||||
throw new Exception('unable to create directory ' . self::$_path, 10);
|
||||
}
|
||||
}
|
||||
if (property_exists($data->meta, 'webserver') && $data->meta->webserver && $this->_conf->getKey('webserver') == "Apache") {
|
||||
$file = self::$_path . DIRECTORY_SEPARATOR . '.htaccess';
|
||||
if (!is_file($file)) {
|
||||
$writtenBytes = @file_put_contents(
|
||||
|
Loading…
Reference in New Issue
Block a user