Proyectos de Subversion LeadersLinked - Services

Rev

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

Rev 807 Rev 815
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 -... Línea 126...
-
 
126
 
-
 
127
        $relativeStoragePath = 'data' . DIRECTORY_SEPARATOR . 'storage';
126
 
128
        $relativeTempPath = $relativeStoragePath . DIRECTORY_SEPARATOR . 'tmp';
Línea 127... Línea 129...
127
        $storageDir = $config['leaderslinked.storage.path'];
129
        $storageDir = $config['leaderslinked.storage.path'];
128
 
130
 
129
        $this->storagePath = $storageDir ? $storageDir . DIRECTORY_SEPARATOR . 'storage' : 'data' . DIRECTORY_SEPARATOR . 'storage';
131
        $this->storagePath = $storageDir ? $storageDir . DIRECTORY_SEPARATOR . $relativeStoragePath : $relativeStoragePath;
130
        if (!file_exists($this->storagePath)) {
132
        if (!file_exists($this->storagePath)) {
Línea 131... Línea 133...
131
            mkdir($this->storagePath, 0775, true);
133
            mkdir($this->storagePath, 0775, true);
Línea 132... Línea 134...
132
        }
134
        }
133
 
135
 
134
        $this->tempPath = $storageDir ? $storageDir . DIRECTORY_SEPARATOR . 'storage' . DIRECTORY_SEPARATOR . 'tmp' : 'data' . DIRECTORY_SEPARATOR . 'storage' . DIRECTORY_SEPARATOR . 'tmp';
136
        $this->tempPath = $storageDir ? $storageDir . DIRECTORY_SEPARATOR . $relativeTempPath : $relativeTempPath;
135
 
137
 
Línea 136... Línea 138...
136
        if (! file_exists($this->tempPath)) {
138
        if (!file_exists($this->tempPath)) {