Proyectos de Subversion LeadersLinked - Services

Rev

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

Rev 820 Rev 821
Línea 327... Línea 327...
327
     */
327
     */
328
    public function composePathToFilename($type, $code, $filename)
328
    public function composePathToFilename($type, $code, $filename)
329
    {
329
    {
330
        $path = $this->getPathByType($type);
330
        $path = $this->getPathByType($type);
331
        $path = $path . DIRECTORY_SEPARATOR . $code;
331
        $path = $path . DIRECTORY_SEPARATOR . $code;
-
 
332
 
-
 
333
        $storageDir = $this->config['leaderslinked.storage.path'];
-
 
334
        $storageFileFullPath = $storageDir . DIRECTORY_SEPARATOR . $path;
-
 
335
 
332
        if (!file_exists($path)) {
336
        if (!file_exists($storageFileFullPath)) {
333
            mkdir($path, 0775, true);
337
            mkdir($storageFileFullPath, 0775, true);
334
        }
338
        }
-
 
339
 
335
        return $path . DIRECTORY_SEPARATOR . $filename;
340
        return $path . DIRECTORY_SEPARATOR . $filename;
336
    }
341
    }
Línea 337... Línea 342...
337
 
342
 
338
    /**
343
    /**