Ticket #408: 408.patch

File 408.patch, 876 bytes (added by Artur Formella, 16 years ago)
  • commands.php

     
    208208                        {
    209209                                $sFilePath = $sServerDir . $sFileName ;
    210210
    211                                 if ( is_file( $sFilePath ) )
     211                                if ( $Config['OverwriteFiles']!=1 && is_file( $sFilePath ) )
    212212                                {
    213213                                        $iCounter++ ;
    214214                                        $sFileName = RemoveExtension( $sOriginalFileName ) . '(' . $iCounter . ').' . $sExtension ;
  • config.php

     
    7272// Used when creating folders that does not exist.
    7373$Config['ChmodOnFolderCreate'] = 0777 ;
    7474
     75// If set to true, user can overwrite existing file.
     76$Config['OverwriteFiles']=1;
     77
    7578/*
    7679        Configuration settings for each Resource Type
    7780
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy