Skip to content

Problem of with SkipObjects #120

@Oros42

Description

@Oros42

If your photos folder contains this :
pic1.jpg
pic2.jpg
pic3_to_skip.jpg
pic4.jpg

And $SkipObjects=array('pic3_to_skip.jpg');
Then MinigalNano display only pic1.jpg and pic2.jpg. Not pic4.jpg.

Source of the problem, in index.php line 186 :

        while (false !== ($file = readdir($handle)) && !in_array($file, $SkipObjects)) {

Should be replace by :

         while (false !== ($file = readdir($handle))) {
                if(in_array($file, $SkipObjects)){
                        continue;
                }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions