Development

HowToRenameFileAfterUpload (diff)

You must first sign up to be able to contribute.

Changes between Version 1 and Version 2 of HowToRenameFileAfterUpload

Show
Ignore:
Author:
cocomiel (IP: 190.139.226.11)
Timestamp:
02/12/10 00:07:44 (8 years ago)
Comment:

Fixed small typo in the code

Legend:

Unmodified
Added
Removed
Modified
  • HowToRenameFileAfterUpload

    v1 v2  
    4343    if ($image) 
    4444    { 
    45       $image->save($swimsuit->Catalogue->getYear() . DIRECTORY_SEPARATOR . $swimsuit->getArticle() . '.jpg'); 
     45      $image->save('swimsuit_' . $swimsuit->getId() . '.jpg'); 
    4646    } 
    4747