Changeset 301 for tags


Ignore:
Timestamp:
Jan 24, 2008 4:30:46 AM (16 years ago)
Author:
quinn
Message:

Added minor functinoality to Upload. Fixed (?) XML serialier config in PEdit.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tags/2.0.2/lib/Upload.inc.php

    r298 r301  
    279279                    'extension' => $this->getFilenameExtension($file_name),
    280280                    'original_index' => $i,
     281                    'original_name' => $files['name'][$i],
    281282                );
    282283                continue;
     
    298299     * @access  public
    299300     * @param   string  $file_name  A name of a file.
     301     * @param   bool    $use_glob   Set true to use glob to find the filename (using $file_name as a pattern)
    300302     * @return  bool                Success of operation.
    301303     */
    302     function deleteFile($file_name)
     304    function deleteFile($file_name, $use_glob=false)
    303305    {
    304306        // Ensure we have a upload directory.
     
    308310        }
    309311
    310         $file_path_name = $this->getParam('upload_path') . '/' . $file_name;
     312        $file_path_name = $this->getParam('upload_path') . '/' . ($use_glob ? $this->getFilenameGlob($file_name) : $file_name);
    311313
    312314        if (!is_file($file_path_name)) {
Note: See TracChangeset for help on using the changeset viewer.