Proyectos de Subversion LeadersLinked - Services

Rev

Rev 815 | Rev 817 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 815 Rev 816
Línea 122... Línea 122...
122
    {
122
    {
123
        $this->config = $config;
123
        $this->config = $config;
124
        $this->adapter = $adapter;
124
        $this->adapter = $adapter;
125
        $this->currentFile = [];
125
        $this->currentFile = [];
Línea 126... Línea 126...
126
 
126
 
127
        $relativeStoragePath = 'data' . DIRECTORY_SEPARATOR . 'storage';
-
 
128
        $relativeTempPath = $relativeStoragePath . DIRECTORY_SEPARATOR . 'tmp';
-
 
129
        $storageDir = $config['leaderslinked.storage.path'];
-
 
130
 
-
 
131
        $this->storagePath = $storageDir ? $storageDir . DIRECTORY_SEPARATOR . $relativeStoragePath : $relativeStoragePath;
127
        $this->storagePath = 'data' . DIRECTORY_SEPARATOR . 'storage';
132
        if (!file_exists($this->storagePath)) {
128
        if (!file_exists($this->storagePath)) {
133
            mkdir($this->storagePath, 0775, true);
129
            mkdir($this->storagePath, 0775, true);
Línea 134... Línea 130...
134
        }
130
        }
Línea 135... Línea 131...
135
 
131
 
136
        $this->tempPath = $storageDir ? $storageDir . DIRECTORY_SEPARATOR . $relativeTempPath : $relativeTempPath;
132
        $this->tempPath = 'data' . DIRECTORY_SEPARATOR . 'storage' . DIRECTORY_SEPARATOR . 'tmp';
137
 
133
 
138
        if (!file_exists($this->tempPath)) {
134
        if (! file_exists($this->tempPath)) {
Línea 139... Línea 135...
139
            mkdir($this->tempPath, 0775, true);
135
            mkdir($this->tempPath, 0775, true);