Dotclear

Changeset 3916:15f69243f128


Ignore:
Timestamp:
11/06/18 12:37:45 (7 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Cope better with the hidden dirs, show the final name of the newly created dir - closes #2290

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/media.php

    r3911 r3916  
    375375        dcPage::addSuccessNotice(sprintf( 
    376376            __('Directory "%s" has been successfully created.'), 
    377             html::escapeHTML($_POST['newdir'])) 
     377            html::escapeHTML(files::tidyFileName($_POST['newdir']))) 
    378378        ); 
    379379        $core->adminurl->redirect('admin.media', $page_url_params); 
     
    732732    for ($i = count($dir['dirs']) - 1; $i >= 0; $i--) { 
    733733        if ($dir['dirs'][$i]->d) { 
    734             if (strpos($dir['dirs'][$i]->relname, '.') !== false) { 
     734            if (strpos($dir['dirs'][$i]->basename, '.') === 0) { 
    735735                unset($dir['dirs'][$i]); 
    736736            } 
Note: See TracChangeset for help on using the changeset viewer.

Sites map