Cambios en titulo, en boton fojas, y en indices online
This commit is contained in:
@ -14,8 +14,12 @@ class Documentos {
|
||||
|
||||
$filename = implode(DIRECTORY_SEPARATOR, [
|
||||
$container->get('folders.upload'),
|
||||
$post['filename'] . '.pdf'
|
||||
$post['filename']
|
||||
]);
|
||||
if (isset($post['month'])) {
|
||||
$filename .= '_' . implode('_', array_reverse(explode(' ', $post['month'])));
|
||||
}
|
||||
$filename .= '.pdf';
|
||||
$file->moveTo($filename);
|
||||
$status = (file_exists($filename) and filemtime($filename) == time());
|
||||
|
||||
|
Reference in New Issue
Block a user