Skip to content
This repository was archived by the owner on Sep 10, 2021. It is now read-only.

Commit 260df33

Browse files
author
Charles Marion
committed
ENH: Import now filter cvs folders
1 parent 501a238 commit 260df33

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

core/controllers/AssetstoreController.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ function deleteAction()
7878
$assetstoreId = $this->_getParam("assetstoreId");
7979
if(isset($assetstoreId))
8080
{
81+
set_time_limit(0); // No time limit since import can take a long time
8182
$assetstore = $this->Assetstore->load($assetstoreId);
8283
if($assetstore != false)
8384
{

core/controllers/ImportController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ private function _recursiveParseDirectory($path, $currentdir)
104104

105105
if($fileInfo->isDir()) // we have a directory
106106
{
107-
if(!file_exists($fileInfo->getPathName()))
107+
if(!file_exists($fileInfo->getPathName()) || $fileInfo->getFilename() == 'CVS')
108108
{
109109
continue;
110110
}

core/public/js/admin/admin.index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
{
2727
var element = $(this).attr('element');
2828
var html = '';
29-
html += 'Do you really want to remove the assetstore? All the items located in it will be delete.';
29+
html += 'Do you really want to remove the assetstore? All the items located in it will be delete. (Can take a wihle)';
3030
html += '<br/>';
3131
html += '<br/>';
3232
html += '<input style="margin-left:140px;" class="globalButton deleteAssetstoreYes" element="'+element+'" type="button" value="'+json.global.Yes+'"/>';

0 commit comments

Comments
 (0)