Ticket #408: 408.2.patch

File 408.2.patch, 890 bytes (added by Artur Formella, 12 years ago)
  • commands.php

     
    208208                        {
    209209                                $sFilePath = $sServerDir . $sFileName ;
    210210
    211                                 if ( is_file( $sFilePath ) )
     211                                if (( $Config['OverwriteFiles'] != true) && (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']= false;
     77
    7578/*
    7679        Configuration settings for each Resource Type
    7780
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy