Proyectos de Subversion LeadersLinked - Services

Rev

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

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